Skip to content
Permalink
Browse files

i18n: script updates

  • Loading branch information
jef-n committed Nov 12, 2014
1 parent 571d47a commit 5ccb1e777d4a992f4d10b405fea22ca0e23d8dde
Showing with 2 additions and 19 deletions.
  1. +1 −18 scripts/pull_ts.sh
  2. +1 −1 scripts/push_ts.sh
@@ -3,7 +3,7 @@
# pull_ts.sh
# ---------------------
# Date : November 2014
# Copyright : (C) 2014 by Tim Sutton
# Copyright : (C) 2014 by Juergen E. Fischer
# Email : jef at norbit dot de
###########################################################################
# #
@@ -53,28 +53,11 @@ cleanup() {

PATH=$QTDIR/bin:$PATH

if type qmake-qt4 >/dev/null 2>&1; then
QMAKE=qmake-qt4
else
QMAKE=qmake
fi

if ! type pylupdate4 >/dev/null 2>&1; then
echo "pylupdate4 not found"
exit 1
fi

if ! type tx >/dev/null 2>&1; then
echo "tx not found"
exit 1
fi

if type lupdate-qt4 >/dev/null 2>&1; then
LUPDATE=lupdate-qt4
else
LUPDATE=lupdate
fi

trap cleanup EXIT

tar --remove-files -cf i18n/python_ts.tar $(find python -name "*.ts")
@@ -112,4 +112,4 @@ $QMAKE -project -o qgis_ts.pro -nopwd src python i18n
echo Updating translations
$LUPDATE -locations none -verbose qgis_ts.pro

echo tx push -s
tx push -s

0 comments on commit 5ccb1e7

Please sign in to comment.
You can’t perform that action at this time.