X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=tx.sh;h=271f1cc75a82f1dbfbe48cbddd75a1c363fc8547;hb=350dd64390082f01f29e0d4e4ef70390ba700219;hp=c2e9f3a5f5d00a5e41bbccd9db190182f785d70f;hpb=7e81470d4e18121c8ea577752929e657c33494e2;p=xonotic%2Fxonotic-data.pk3dir.git 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"