2020-01-02 22:59:00 +01:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
2020-02-16 06:14:08 +01:00
|
|
|
# update template .pot file from source code strings
|
2020-01-02 22:59:00 +01:00
|
|
|
#
|
2020-03-22 19:52:56 +01:00
|
|
|
|
|
|
|
set -eu -o pipefail ${SHELLFLAGS}
|
2020-01-04 23:35:46 +01:00
|
|
|
|
2020-02-26 09:09:06 +01:00
|
|
|
topDir=$(dirname $0)/../../../
|
2020-01-04 23:35:46 +01:00
|
|
|
cd $topDir
|
|
|
|
|
2020-01-02 22:59:00 +01:00
|
|
|
all=all.files
|
|
|
|
echo "Updating anki.pot..."
|
2020-01-17 02:14:54 +01:00
|
|
|
for i in pylib/anki/{*.py,importing/*.py}; do
|
2020-01-02 22:59:00 +01:00
|
|
|
echo $i >> $all
|
|
|
|
done
|
2020-01-04 23:35:46 +01:00
|
|
|
for i in qt/aqt/{*.py,forms/*.py}; do
|
2020-01-02 22:59:00 +01:00
|
|
|
echo $i >> $all
|
|
|
|
done
|
|
|
|
|
2020-02-26 08:47:02 +01:00
|
|
|
xgettext -cT: -s --no-wrap --files-from=$all --output=qt/po/repo/desktop/anki.pot
|
2020-01-02 22:59:00 +01:00
|
|
|
rm $all
|