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