Skip to content

Commit 48a80c7

Browse files
author
jef
committedNov 24, 2009
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
1 parent 7068bf7 commit 48a80c7

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed
 

‎scripts/update_ts_files.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,13 @@ PATH=$QTDIR/bin:$PATH
1616
echo Creating qt_ts.tar
1717
tar --remove-files -cvf i18n/qt_ts.tar i18n/qt_*.ts
1818
exclude=
19+
opts=
1920
for i in "$@"; do
20-
exclude="$exclude --exclude i18n/qgis_$i.ts"
21+
if [ -f "i18n/qgis_$i.ts" ]; then
22+
exclude="$exclude --exclude i18n/qgis_$i.ts"
23+
else
24+
opts=" $i"
25+
fi
2126
done
2227
if [ -n "$exclude" ]; then
2328
tar --remove-files -cvf i18n/qgis_ts.tar i18n/qgis_*.ts$exclude
@@ -38,7 +43,7 @@ done
3843
echo Creating qmake project file
3944
qmake -project -o qgis_ts.pro -nopwd src python i18n
4045
echo Updating translation files
41-
lupdate -verbose qgis_ts.pro
46+
lupdate$opts -verbose qgis_ts.pro
4247
echo Removing temporary python translation files
4348
perl -i.bak -ne 'print unless /^\s+<location.*python-i18n\.cpp.*$/;' i18n/qgis_*.ts
4449
rm python/python-i18n.cpp python/plugins/*/python-i18n.cpp i18n/qgis_*.ts.bak

0 commit comments

Comments
 (0)
Please sign in to comment.