update_ts.sh: don't update ts files on pull w/o build directory

This commit is contained in:
Juergen E. Fischer 2019-09-20 20:16:26 +02:00
parent b837e65662
commit 58d59e463c

View File

@ -151,6 +151,7 @@ elif [ $action = pull ]; then
fi
fi
if [ -d "$builddir" ]; then
echo Updating python translations
(
cd python
@ -199,6 +200,7 @@ echo Updating translations
$LUPDATE -no-ui-lines -no-obsolete -locations absolute -verbose qgis_ts.pro
perl -i.bak -ne 'print unless /^\s+<location.*(qgs(expression|contexthelp)_texts\.cpp|-i18n\.(ui|cpp)).*$/;' i18n/qgis_*.ts
fi
if [ $action = push ]; then
cp i18n/qgis_en.ts /tmp/qgis_en.ts-uploading