forked from I2P_Developers/i2p.www
Updated i2hq script
This commit is contained in:
@ -11,3 +11,4 @@ else
|
|||||||
pybabel compile -D $domain -d $TRANSDIR
|
pybabel compile -D $domain -d $TRANSDIR
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
touch ./.pybabel-stamp
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
#!/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/" "
|
|||||||
./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
|
||||||
|
Reference in New Issue
Block a user