From a321b02d9f830aca19b4e736435c67f944b468d5 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 22 Apr 2017 11:09:16 -0700 Subject: 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 --- scripts/updatetranslationsource.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'scripts') 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 -- cgit v1.2.3-70-g09d2