From: Rudolf Polzer Date: Thu, 23 Sep 2010 09:21:30 +0000 (+0200) Subject: update-cvarcount: report too much/missing cvars X-Git-Tag: xonotic-v0.1.0preview~308^2^2~8 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=323f6352438197f836a3de2eb4e6d86a8ca1b5b8;p=xonotic%2Fxonotic-data.pk3dir.git update-cvarcount: report too much/missing cvars --- diff --git a/update-cvarcount.sh b/update-cvarcount.sh index 539c0c1df..e322501fc 100755 --- a/update-cvarcount.sh +++ b/update-cvarcount.sh @@ -5,6 +5,13 @@ for b in balance*.cfg; do countb=`awk '/^seta? g_/ { print $2; }' "$b" | sort -u | tr -d '\r' | git hash-object --stdin | cut -c 1-32` if [ "$countw" != "$countb" ]; then echo "Mismatch between balanceXonotic.cfg and $b. Aborting." + echo "Differences are:" + A=`mktemp` + B=`mktemp` + awk '/^seta? g_/ { print $2; }' balanceXonotic.cfg | sort -u | tr -d '\r' > "$A" + awk '/^seta? g_/ { print $2; }' "$b" | sort -u | tr -d '\r' > "$B" + diff "$A" "$B" | grep '^[<>]' | sort + rm -f "$A" "$B" exit 1 fi done