make_sndlist.sh 317 B

12345678910111213141516
  1. #!/bin/bash
  2. #relative:
  3. ACTIONDIR=./..
  4. cd $ACTIONDIR
  5. ACTIONDIR=$(pwd)
  6. # now it's absolute
  7. SNDDIR=$ACTIONDIR/sound/user
  8. CFGDIR=$ACTIONDIR/config
  9. cd $SNDDIR
  10. find -type f -iname "*wav" | sed -e 's/\.\///' $CFGDIR/sndlist.ini.current
  11. cd $CFGDIR
  12. cp sndlist.ini.header sndlist.ini
  13. sort sndlist.ini.current >> sndlist.ini