update_ts.sh: macos' find doesn't have -printf

This commit is contained in:
Juergen E. Fischer 2019-08-04 19:24:47 +02:00
parent 06b24d164a
commit 85a048a01c

View File

@ -162,11 +162,11 @@ echo Updating python translations
for i in python/plugins/*/CMakeLists.txt; do
cd ${i%/*}
cat <<EOF >python-i18n.pro
SOURCES = $(find . -type f -name "*.py" -printf " %p \
")
SOURCES = $(find . -type f -name "*.py" -print | sed -e 's/^/ /' -e 's/$/ \\/')
FORMS = $(find . -type f -name "*.ui" -print | sed -e 's/^/ /' -e 's/$/ \\/')
FORMS = $(find . -type f -name "*.ui" -printf " %p \
")
TRANSLATIONS = python-i18n.ts
EOF