scanscript.sh
author Stiletto <blasux@blasux.ru>
Thu, 22 Sep 2011 13:27:23 +0400
changeset 9 ae87469781f2
parent 7 1928f1a1ee5b
permissions -rwxr-xr-x
CUE extractor

#!/bin/sh
PROGDIR=$(dirname $(readlink -f $0))
find "$1" -type f| while read fname; do
    EXT="${fname/*./}"
    case "$EXT" in
        mp3)
            $PROGDIR/extractors/ext-mpg123 "$fname"
            ;;
        cue)
            $PROGDIR/extractors/ext-cue "$fname"
            ;;
        *)
        true #$PROGDIR/extractors/ext-taglib "$fname"
    esac
done