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

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

Updated i2hq scripts to match regular ones

parent 4aeb3dd2
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
. ./etc/translation.vars
export TZ=UTC
if [ $# -ge 1 ]
then
TZ=UTC pybabel compile -D $1 -d $TRANSDIR
pybabel compile -D $1 -d $TRANSDIR
else
for domain in $(ls $BABELCFG); do
TZ=UTC pybabel compile -D $domain -d $TRANSDIR
pybabel compile -D $domain -d $TRANSDIR
done
fi
......@@ -3,14 +3,15 @@ TMP=$(mktemp XXXXXXXXXX)
trap 'rm -f $TMP;exit' 0 1 2 15
mtn pull
mtn update 2>&1 | tee $TMP
mtn up 2>&1 | tee $TMP
if grep "^mtn: \(add\|dropp\|updat\)ing 'i2p2www/translations/" "$TMP" >/dev/null; then
if grep "^mtn: \(add\|patch\|dropp\|updat\)\(ed\|ing\) 'i2p2www/translations/" "$TMP" >/dev/null ; then
echo "Translations updated, compiling messages"
./compile-messages-i2hq.sh
fi
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"
touch /tmp/2fcd2f17-c293-4f77-b4c9-9b266ba70daa
fi
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