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

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

Updated message extraction to only update changed .pots

parent 2a682738
No related branches found
No related tags found
No related merge requests found
...@@ -14,10 +14,17 @@ then ...@@ -14,10 +14,17 @@ then
-o $POTDIR/$1.pot $PROJDIR -o $POTDIR/$1.pot $PROJDIR
else else
for domain in $(ls $BABELCFG); do for domain in $(ls $BABELCFG); do
if [ -e $POTDIR/$domain.pot ]; then
mv $POTDIR/$domain.pot $POTDIR/$domain.pot.old
fi
TZ=UTC ./pybabel extract --msgid-bugs-address="http://trac.i2p2.de" \ TZ=UTC ./pybabel extract --msgid-bugs-address="http://trac.i2p2.de" \
--project=$PROJECT \ --project=$PROJECT \
--version=$VERSION \ --version=$VERSION \
-F $BABELCFG/$domain \ -F $BABELCFG/$domain \
-o $POTDIR/$domain.pot $PROJDIR -o $POTDIR/$domain.pot $PROJDIR
diff -u $POTDIR/$domain.pot.old $POTDIR/$domain.pot | grep '^+' | grep -v '^+++' | grep -v '+"POT-Creation-Date' >/dev/null
if [ $? -eq 1 ]; then
mv $POTDIR/$domain.pot.old $POTDIR/$domain.pot
fi
done done
fi 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