4 countw=`awk '/^seta? g_/ { print $2; }' balanceXonotic.cfg | sort -u | tr -d '\r' | git hash-object --stdin | cut -c 1-32`
5 for b in balance*.cfg; do
6 countb=`awk '/^seta? g_/ { print $2; }' "$b" | sort -u | tr -d '\r' | git hash-object --stdin | cut -c 1-32`
7 if [ "$countw" != "$countb" ]; then
8 echo "Mismatch between balanceXonotic.cfg and $b. Aborting."
9 echo "Differences are:"
10 echo "< missing in $b"
11 echo "> must get removed from $b"
12 A=`mktemp || echo a.tmp`
13 B=`mktemp || echo b.tmp`
14 awk '/^seta? g_/ { print $2; }' balanceXonotic.cfg | sort -u | tr -d '\r' > "$A"
15 awk '/^seta? g_/ { print $2; }' "$b" | sort -u | tr -d '\r' > "$B"
16 diff "$A" "$B" | grep '^[<>]' | sort
22 echo "Please wait for 30 seconds, so you have had enough time to read this..."