Updated i2hq script

This commit is contained in:
str4d
2015-10-04 00:22:53 +00:00
parent 588f2f7887
commit e651ee8d8a
2 changed files with 9 additions and 0 deletions

View File

@ -11,3 +11,4 @@ else
pybabel compile -D $domain -d $TRANSDIR
done
fi
touch ./.pybabel-stamp

View File

@ -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