From: Rudolf Polzer Date: Fri, 2 Feb 2018 23:00:10 +0000 (+0100) Subject: Add a batch mode for transifex sync (don't call out to vim but just ignore anything... X-Git-Tag: xonotic-v0.8.5~2353 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=91a79f7f8a507dd0838fe9319346ada239ccad92;p=xonotic%2Fxonotic-data.pk3dir.git Add a batch mode for transifex sync (don't call out to vim but just ignore anything that can't be merged). --- diff --git a/common.ast.po b/common.ast.po index b7d36a76d..3ae974f44 100644 --- a/common.ast.po +++ b/common.ast.po @@ -2886,7 +2886,7 @@ msgstr "^BG%s%s^K1 comió'l cohete de ^BG%s^K1%s%s" #: qcsrc/common/notifications/all.inc:463 #, c-format -msgid "^BG%s%s^K1 got too close ^BG%s^K1's rocket%s%s" +msgid "^BG%s%s^K1 got too close to ^BG%s^K1's rocket%s%s" msgstr "" #: qcsrc/common/notifications/all.inc:464 diff --git a/tx.sh b/tx.sh index c2e9f3a5f..271f1cc75 100644 --- a/tx.sh +++ b/tx.sh @@ -63,13 +63,15 @@ if $sync_po; then cp "$tcurfile" "$gnewfile" else if ! diff -u "$goldfile" "$gnewfile" | patch "$tcurfile"; then - while :; do - vim -o "$tcurfile.rej" "$tcurfile" - echo "OK?" - read -r OK || exit 1 - [ x"$OK" != x"y" ] || break - done - rm -f "$tcurfile.rej" + if [ -z "$BATCH" ]; then + while :; do + vim -o "$tcurfile.rej" "$tcurfile" + echo "OK?" + read -r OK || exit 1 + [ x"$OK" != x"y" ] || break + done + rm -f "$tcurfile.rej" + fi fi msgmerge -N -F -U "$tcurfile" common.pot cp "$tcurfile" "$gnewfile"