I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit e651ee8d authored by str4d's avatar str4d
Browse files

Updated i2hq script

parent 588f2f78
No related branches found
No related tags found
No related merge requests found
...@@ -11,3 +11,4 @@ else ...@@ -11,3 +11,4 @@ else
pybabel compile -D $domain -d $TRANSDIR pybabel compile -D $domain -d $TRANSDIR
done done
fi fi
touch ./.pybabel-stamp
#!/bin/sh #!/bin/sh
cd $(dirname $0)
. ./etc/update.vars . ./etc/update.vars
[ -f ./etc/update.vars.custom ] && . ./etc/update.vars.custom
[ ! -f $TOUCHFILE ] && touch $TOUCHFILE
TMP=$(mktemp XXXXXXXXXX) TMP=$(mktemp XXXXXXXXXX)
trap 'rm -f $TMP;exit' 0 1 2 15 trap 'rm -f $TMP;exit' 0 1 2 15
...@@ -13,7 +17,11 @@ if grep "^mtn: \(add\|patch\|dropp\|updat\)\(ed\|ing\) 'i2p2www/translations/" " ...@@ -13,7 +17,11 @@ if grep "^mtn: \(add\|patch\|dropp\|updat\)\(ed\|ing\) 'i2p2www/translations/" "
./compile-messages-i2hq.sh ./compile-messages-i2hq.sh
fi 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 if grep "^mtn: updating 'i2p2www/.*\.py\|^mtn: updating 'i2p2www/.*/.*\.py" "$TMP" >/dev/null ; then
echo "Python files changed, restarting server" echo "Python files changed, restarting server"
touch $TOUCHFILE touch $TOUCHFILE
fi fi
[ -f ./.pybabel-stamp ] || ./compile-messages.sh
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment