From 696ef8c48366f2c183423de22f060b2babab989f Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Wed, 22 Jun 2016 23:02:00 +0200
Subject: [PATCH] Add git commit hook.

---
 systemfiles/post-update | 4 ++++
 1 file changed, 4 insertions(+)
 create mode 100755 systemfiles/post-update

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' {} \;
-- 
2.30.2