comparison gettracks-gogo.sh @ 2:5cead4da1db9

Initial import. Seems to work nicely.
author darius
date Wed, 09 Aug 2000 02:18:47 +0000
parents
children
comparison
equal deleted inserted replaced
1:dd6e30f7eb42 2:5cead4da1db9
1 #!/bin/sh
2
3 if [ $# -lt 1 ]; then
4 echo Usage: $0 \<tracknum\> [ \<tracknum\> ... ]
5 exit 1
6 fi
7
8 rm -f /tmp/ripper.pipe
9 mkfifo /tmp/ripper.pipe
10
11 for t in $* ; do
12 num=`printf %02d $t`
13 name=`printf track_%s.mp3 $num`
14 echo Ripping $num to $name
15 echo
16 (/usr/bin/time cdd -t $num - rip.log | team 256k 16 | gogo -silent -offset 0 -b 192 stdin $name) 2>> /tmp/rip.log
17 if [ $? -ne 0 ]; then
18 echo "Failed!"
19 rm -f /tmp/ripper.pipe
20 exit 1
21 fi
22 rm -f /tmp/ripper.pipe
23 done
24
25 rm -f /tmp/ripper.pipe