Files
pisi/scripts/update-po.sh
T
Fatih Aşıcı d6849c5b88 scripts/update-po: Do not wrap lines and sort by file
I hope this helps reducing the sizes of transifex commits.
2010-04-13 19:59:38 +00:00

14 lines
421 B
Bash
Executable File

#!/bin/sh
PYTHON_VER=`python -c "import sys; print '%d.%d' % sys.version_info[:2]"`
OPTPARSE_PY=/usr/lib/python$PYTHON_VER/optparse.py
find pisi -iname '*.py' | grep -v pisi/cli/commands.py > exclude
echo "$OPTPARSE_PY" >> exclude
python scripts/pygettext.py -D -X exclude -o po/pisi.pot pisi pisi-cli $OPTPARSE_PY
for lang in po/*.po
do
msgmerge --update --no-wrap --sort-by-file $lang po/pisi.pot
done
rm exclude