123456789101112131415161718 |
- #!/bin/bash
- #relative:
- ACTIONDIR=./..
- cd $ACTIONDIR
- ACTIONDIR=$(pwd)
- # now it's absolute
- SNDDIR=$ACTIONDIR/sound/user
- CFGDIR=$ACTIONDIR/config
- cd $SNDDIR
- echo "looking for all .wav files inside: $(pwd)"
- find -type f -iname "*wav" | sed -e 's/\.\///' > $CFGDIR/sndlist.ini.current
- cd $CFGDIR
- cp sndlist.ini.header sndlist.ini
- sort sndlist.ini.current >> sndlist.ini
- echo "file sndlist.ini should be created now inside: $(pwd)"
|