20c9837770
# Conflicts: # .github/scripts/trailing-newlines.sh # Makefile # qt/tools/typecheck-setup.sh # react/Makefile # rspy/Makefile # svelte/Makefile # tslib/Makefile
22 lines
415 B
Bash
Executable File
22 lines
415 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# update template .pot file from source code strings
|
|
#
|
|
|
|
set -eu -o pipefail ${SHELLFLAGS}
|
|
|
|
topDir=$(dirname $0)/../../../
|
|
cd $topDir
|
|
|
|
all=all.files
|
|
echo "Updating anki.pot..."
|
|
for i in pylib/anki/{*.py,importing/*.py}; do
|
|
echo $i >> $all
|
|
done
|
|
for i in qt/aqt/{*.py,forms/*.py}; do
|
|
echo $i >> $all
|
|
done
|
|
|
|
xgettext -cT: -s --no-wrap --files-from=$all --output=qt/po/repo/desktop/anki.pot
|
|
rm $all
|