scripts: Do not extract docstrings in optparse module
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
#!/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
|
||||
python scripts/pygettext.py -D -X exclude -o po/pisi.pot pisi pisi-cli /usr/lib/python$PYTHON_VER/optparse.py
|
||||
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 -U $lang po/pisi.pot
|
||||
|
||||
Reference in New Issue
Block a user