X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=update-cvarcount.sh;h=0bd63e9fb2ad9d57e61582ddf0d691cff8a5f831;hp=539c0c1df1df5efba5ed86592053039633f3b84a;hb=b4ae103577c4edf2199b730ed44dcb698c8253f6;hpb=c6b8947c5875567662ac5c3e156325bcff42aee9 diff --git a/update-cvarcount.sh b/update-cvarcount.sh index 539c0c1df..0bd63e9fb 100755 --- a/update-cvarcount.sh +++ b/update-cvarcount.sh @@ -5,6 +5,15 @@ 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:" + echo "< missing in $b" + echo "> must get removed from $b" + A=`mktemp || echo a.tmp` + B=`mktemp || echo b.tmp` + 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