make file context relative to root

This commit is contained in:
Damien Elmes 2020-01-05 08:35:46 +10:00
parent 1c77ff57ef
commit eee21d347f

View File

@ -3,14 +3,18 @@
# update translation files
#
topDir=$(dirname $0)/../..
cd $topDir
all=all.files
echo "Updating anki.pot..."
for i in ../../pylib/anki/{*.py,importing/*.py,template/*.py}; do
for i in pylib/anki/{*.py,importing/*.py,template/*.py}; do
echo $i >> $all
done
for i in ../aqt/{*.py,forms/*.py}; do
for i in qt/aqt/{*.py,forms/*.py}; do
echo $i >> $all
done
xgettext -cT: -s --no-wrap --files-from=$all --output=anki.pot
xgettext -cT: -s --no-wrap --files-from=$all --output=qt/i18n/anki.pot
rm $all