portability fixes for ssc script courtesy of Ulrich Spoerlein

This commit is contained in:
Ron Pedde 2007-10-23 03:13:15 +00:00
parent 1292992f6f
commit 14626a0174

View File

@ -22,32 +22,21 @@ flac_file() {
} }
FILE=$1 FILE=$1
OFFSET=0 OFFSET=${2:-0}
if [ "$2" == "" ]; then
OFFSET=0
else
OFFSET=$2
fi
if [ "$3" != "" ]; then if [ "$3" != "" ]; then
FORGELEN="-l $3" FORGELEN="-l $3"
fi fi
if ( echo $1 | grep -i "\.ogg$" > /dev/null 2>&1 ); then case "$1" in
ogg_file *.[oO][gG][gG])
exit; ogg_file
fi ;;
*.[fF][lL][aA][cC])
if ( echo $1 | grep -i "\.flac$" > /dev/null 2>&1 ); then flac_file
flac_file ;;
exit; *)
fi
#
# here you could cat a generic "error" wav... # here you could cat a generic "error" wav...
#
#
# cat /path/to/error.wav # cat /path/to/error.wav
# ;;
esac