From: Christian Heller Date: Wed, 22 Jun 2016 21:02:00 +0000 (+0200) Subject: Add git commit hook. X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/%7B%7B%20web_path%20%7D%7D/decks/day_todos?a=commitdiff_plain;h=696ef8c48366f2c183423de22f060b2babab989f;p=config Add git commit hook. --- diff --git a/systemfiles/post-update b/systemfiles/post-update new file mode 100755 index 0000000..325d94f --- /dev/null +++ b/systemfiles/post-update @@ -0,0 +1,4 @@ +#!/bin/sh +LIFELOGDIR=/home/plom/lifelog +GIT_WORK_TREE=$LIFELOGDIR git checkout -f +find $LIFELOGDIR -name "*.rst" -exec sh -c 'rst2html $0 > ${0%.rst}.html' {} \;