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>
This commit is contained in:
Dirk Hohndel 2017-04-22 11:09:16 -07:00
parent abf5656ce6
commit a321b02d9f

View file

@ -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