mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
allow lupdate options like -no-obsolete on update_ts_files.sh
git-svn-id: http://svn.osgeo.org/qgis/trunk@12244 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
7068bf7886
commit
48a80c7ac3
@ -16,8 +16,13 @@ PATH=$QTDIR/bin:$PATH
|
||||
echo Creating qt_ts.tar
|
||||
tar --remove-files -cvf i18n/qt_ts.tar i18n/qt_*.ts
|
||||
exclude=
|
||||
opts=
|
||||
for i in "$@"; do
|
||||
exclude="$exclude --exclude i18n/qgis_$i.ts"
|
||||
if [ -f "i18n/qgis_$i.ts" ]; then
|
||||
exclude="$exclude --exclude i18n/qgis_$i.ts"
|
||||
else
|
||||
opts=" $i"
|
||||
fi
|
||||
done
|
||||
if [ -n "$exclude" ]; then
|
||||
tar --remove-files -cvf i18n/qgis_ts.tar i18n/qgis_*.ts$exclude
|
||||
@ -38,7 +43,7 @@ done
|
||||
echo Creating qmake project file
|
||||
qmake -project -o qgis_ts.pro -nopwd src python i18n
|
||||
echo Updating translation files
|
||||
lupdate -verbose qgis_ts.pro
|
||||
lupdate$opts -verbose qgis_ts.pro
|
||||
echo Removing temporary python translation files
|
||||
perl -i.bak -ne 'print unless /^\s+<location.*python-i18n\.cpp.*$/;' i18n/qgis_*.ts
|
||||
rm python/python-i18n.cpp python/plugins/*/python-i18n.cpp i18n/qgis_*.ts.bak
|
||||
|
Loading…
x
Reference in New Issue
Block a user