3 allsounds=`find sound -name .svn -prune -o \( -name \*.ogg -o -name \*.wav \) -print`
4 for S in $allsounds; do
7 if [ -f "sound/$SND.ogg" ] && [ -f "sound/$SND.wav" ]; then
8 echo "$SND exists twice"
12 # verified by .sounds file check
15 # maps can use them always
18 # maps can use them always
21 # maps can use them always
34 if ! grep -Er '"'$SND'\.(ogg|wav)"' qcsrc/server >/dev/null; then
35 echo "$S ($SND) is unused by the code"
43 allsounds="$LF`find sound/player -mindepth 2 -name .svn -prune -o \( -name \*.ogg -o -name \*.wav \) -print`$LF"
44 remainingsounds=$allsounds
51 case "$remainingsounds" in
53 remainingsounds=${remainingsounds%%$pat*}$LF${remainingsounds#*$pat}
66 psoundfile "$s.ogg" || psoundfile "$s.wav"
71 if psoundtry "$s"; then
74 echo "$S references nonexisting sound $s"
78 for S in models/player/*.sounds sound/player/default.sounds; do
79 if [ "$S" = "sound/player/default.sounds" ] || [ -f "${S#.sounds}" ]; then
80 while read -r TITLE SOUND COUNT; do
86 if psoundtry "$SOUND"; then
91 for i in `seq 1 $COUNT`; do
92 if psoundtry "$SOUND$i"; then
99 echo "$S references existing sound $SOUND but commented out"
103 echo "Unknown identifier $TITLE in $S"
111 for i in `seq 1 $COUNT`; do
120 echo "$S exists for nonexisting player model"
123 for S in $remainingsounds; do
124 echo "$S is not used by any player model"
128 for S in models/player/*.sounds; do echo -n `head -n 1 "$S"`" "; md5sum "$S"; done | sort