mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
abf5656ce6
commit
a321b02d9f
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue