File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,13 @@ PATH=$QTDIR/bin:$PATH
16
16
echo Creating qt_ts.tar
17
17
tar --remove-files -cvf i18n/qt_ts.tar i18n/qt_* .ts
18
18
exclude=
19
+ opts=
19
20
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
21
26
done
22
27
if [ -n " $exclude " ]; then
23
28
tar --remove-files -cvf i18n/qgis_ts.tar i18n/qgis_* .ts$exclude
38
43
echo Creating qmake project file
39
44
qmake -project -o qgis_ts.pro -nopwd src python i18n
40
45
echo Updating translation files
41
- lupdate -verbose qgis_ts.pro
46
+ lupdate$opts -verbose qgis_ts.pro
42
47
echo Removing temporary python translation files
43
48
perl -i.bak -ne ' print unless /^\s+<location.*python-i18n\.cpp.*$/;' i18n/qgis_* .ts
44
49
rm python/python-i18n.cpp python/plugins/* /python-i18n.cpp i18n/qgis_* .ts.bak
You can’t perform that action at this time.
0 commit comments