projects
/
xonotic
/
xonotic-music.pk3dir.git
/ blob
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
sensation3
[xonotic/xonotic-music.pk3dir.git]
/
cdtracks.sh
1
#!/bin/sh
2
3
IGNORE=thunder
4
5
set -ex
6
cd sound/cdtracks
7
for F in *.ogg; do
8
T=${F%.ogg} # for tracker files we still need the ext
9
case " $IGNORE " in
10
*" $T "*)
11
;;
12
*)
13
if ! grep "^_cdtrack [1-9][0-9]* $T" ../../cdtracks.cfg >/dev/null; then
14
n=`tail -n 1 ../../cdtracks.cfg | cut -d ' ' -f 2`
15
n=$(($n+1))
16
echo "_cdtrack $n $T" >> ../../cdtracks.cfg
17
fi
18
esac
19
done