summaryrefslogtreecommitdiffstats
path: root/scripts/updatetranslationsource.sh
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-04-22 11:09:16 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-04-22 11:09:16 -0700
commita321b02d9f830aca19b4e736435c67f944b468d5 (patch)
treefd6f4d38feef877ba0f4b9f33f191f67335a54d6 /scripts/updatetranslationsource.sh
parentabf5656ce69e002df7ec5eb4b0fc9e9f0db1d054 (diff)
downloadsubsurface-a321b02d9f830aca19b4e736435c67f944b468d5.tar.gz
Add -nopush option to translation script
This way I can easily see if there are new strings - without causing an unnecessary push to Transifex. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'scripts/updatetranslationsource.sh')
-rwxr-xr-xscripts/updatetranslationsource.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/updatetranslationsource.sh b/scripts/updatetranslationsource.sh
index 83a0784b5..61dbb0713 100755
--- a/scripts/updatetranslationsource.sh
+++ b/scripts/updatetranslationsource.sh
@@ -7,6 +7,10 @@ if [[ ! -d translations || ! -f translations/subsurface_source.qm ]] ; then
exit 1
fi
+if [[ "$1" = "-nopush" ]] ; then
+ NOPUSH="1"
+fi
+
SRC=$(grep Subsurface_SOURCE_DIR CMakeCache.txt | cut -d= -f2)
pushd $SRC
@@ -43,4 +47,6 @@ git reset --hard
# this really depends on my filesystem layout
# push sources to Transifex
-~/transifex-client/tx push -s
+if [[ "$NOPUSH" != "1" ]] ; then
+ ~/transifex-client/tx push -s
+fi