From e651ee8d8a66cc44f983add15996e3201fd33a2a Mon Sep 17 00:00:00 2001
From: str4d <str4d@mail.i2p>
Date: Sun, 4 Oct 2015 00:22:53 +0000
Subject: [PATCH] Updated i2hq script

---
 compile-messages-i2hq.sh | 1 +
 site-updater-i2hq.sh     | 8 ++++++++
 2 files changed, 9 insertions(+)

diff --git a/compile-messages-i2hq.sh b/compile-messages-i2hq.sh
index ff20d7ac8..3b723aed5 100755
--- a/compile-messages-i2hq.sh
+++ b/compile-messages-i2hq.sh
@@ -11,3 +11,4 @@ else
         pybabel compile -D $domain -d $TRANSDIR
     done
 fi
+touch ./.pybabel-stamp
diff --git a/site-updater-i2hq.sh b/site-updater-i2hq.sh
index 20652820e..cb15b52d2 100755
--- a/site-updater-i2hq.sh
+++ b/site-updater-i2hq.sh
@@ -1,5 +1,9 @@
 #!/bin/sh
+cd $(dirname $0)
 . ./etc/update.vars
+[ -f ./etc/update.vars.custom ] && . ./etc/update.vars.custom
+
+[ ! -f $TOUCHFILE ] && touch $TOUCHFILE
 
 TMP=$(mktemp XXXXXXXXXX)
 trap 'rm -f $TMP;exit' 0 1 2 15
@@ -13,7 +17,11 @@ if grep "^mtn: \(add\|patch\|dropp\|updat\)\(ed\|ing\) 'i2p2www/translations/" "
   ./compile-messages-i2hq.sh
 fi
 
+echo "Monotone revision: $(mtn log --no-files --no-graph --to h: | grep Revision | sed 's/Revision: //')" >./i2p2www/pages/include/mtnversion
+
 if grep "^mtn: updating 'i2p2www/.*\.py\|^mtn: updating 'i2p2www/.*/.*\.py" "$TMP" >/dev/null ; then
   echo "Python files changed, restarting server"
   touch $TOUCHFILE
 fi
+
+[ -f ./.pybabel-stamp ] || ./compile-messages.sh
-- 
GitLab