mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
update_ts.sh: don't update ts files on pull w/o build directory
This commit is contained in:
parent
b837e65662
commit
58d59e463c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user