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