X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=update-cvarcount.sh;h=b82840ae0873fcf9fc38d3a7c71330199338df2e;hp=539c0c1df1df5efba5ed86592053039633f3b84a;hb=e282b2e71118249471dde56e8f2e5b0368fe139e;hpb=c6b8947c5875567662ac5c3e156325bcff42aee9 diff --git a/update-cvarcount.sh b/update-cvarcount.sh index 539c0c1df..b82840ae0 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:" + 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" + echo "< missing in $b" + echo "> must get removed from $b" + diff "$A" "$B" | grep '^[<>]' | sort + rm -f "$A" "$B" exit 1 fi done