home · contact · privacy
Add git commit hook.
authorChristian Heller <c.heller@plomlompom.de>
Wed, 22 Jun 2016 21:02:00 +0000 (23:02 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Wed, 22 Jun 2016 21:02:00 +0000 (23:02 +0200)
systemfiles/post-update [new file with mode: 0755]

diff --git a/systemfiles/post-update b/systemfiles/post-update
new file mode 100755 (executable)
index 0000000..325d94f
--- /dev/null
@@ -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' {} \;