X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=update-cvarcount.sh;h=0bd63e9fb2ad9d57e61582ddf0d691cff8a5f831;hb=599234e1ea8480cf08ebe9730a3ddd9945de6c3e;hp=539c0c1df1df5efba5ed86592053039633f3b84a;hpb=a63b9663a2e95555f6985430919574f2ddd04f6f;p=xonotic%2Fxonotic-data.pk3dir.git 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