]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - update-cvarcount.sh
Merge remote branch 'origin/fruitiex/fruitbalance'
[xonotic/xonotic-data.pk3dir.git] / update-cvarcount.sh
index 539c0c1df1df5efba5ed86592053039633f3b84a..b82840ae0873fcf9fc38d3a7c71330199338df2e 100755 (executable)
@@ -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