Skip to content

Commit

Permalink
update_ts: avoid excessive number of arguments (for windows)
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Feb 11, 2017
1 parent 801821f commit 6afd9a4
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions scripts/update_ts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,19 @@ rm python-i18n.ts
cd ..
for i in python/plugins/*/CMakeLists.txt; do
cd ${i%/*}
pylupdate5 -tr-function trAlgorithm $(find . -name "*.py" -o -name "*.ui") -ts python-i18n.ts
cat <<EOF >python-i18n.pro
SOURCES = $(find . -type f -name "*.py" -printf " %p \
")
FORMS = $(find . -type f -name "*.ui" -printf " %p \
")
TRANSLATIONS = python-i18n.ts
EOF

pylupdate5 -tr-function trAlgorithm python-i18n.pro
perl ../../../scripts/ts2cpp.pl python-i18n.ts python-i18n.cpp
rm python-i18n.ts
rm python-i18n.ts python-i18n.pro
cd ../../..
done

Expand Down

0 comments on commit 6afd9a4

Please sign in to comment.