scanscript.sh
changeset 9 ae87469781f2
parent 7 1928f1a1ee5b
equal deleted inserted replaced
8:c9b4af5f3122 9:ae87469781f2
     1 #!/bin/sh
     1 #!/bin/sh
     2 PROGDIR=$(dirname $(readlink -f $0))
     2 PROGDIR=$(dirname $(readlink -f $0))
     3 find "$1" -type f| while read fname; do
     3 find "$1" -type f| while read fname; do
     4     EXT="${fname/*./}"
     4     EXT="${fname/*./}"
     5     if [ "$EXT" == "mp3" ];then
     5     case "$EXT" in
     6         $PROGDIR/extractors/ext-mpg123 "$fname"
     6         mp3)
     7     else
     7             $PROGDIR/extractors/ext-mpg123 "$fname"
       
     8             ;;
       
     9         cue)
       
    10             $PROGDIR/extractors/ext-cue "$fname"
       
    11             ;;
       
    12         *)
     8         true #$PROGDIR/extractors/ext-taglib "$fname"
    13         true #$PROGDIR/extractors/ext-taglib "$fname"
     9     fi
    14     esac
    10 done
    15 done