changeset 5:cf06ab549064

Write files to mark our progress and skip doing tracks if we have already done them.
author darius
date Sat, 12 Aug 2000 07:11:06 +0000
parents 3a7a8d8a070a
children f5daa3cdeb58
files gettracks.sh
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gettracks.sh	Tue Oct 23 10:08:25 2007 +0930
+++ b/gettracks.sh	Sat Aug 12 07:11:06 2000 +0000
@@ -17,11 +17,18 @@
 for t in $tracks ; do
   num=`printf %02d $t`
   name=`printf track_%s.mp3 $num`
+  if [ -e ".${num}.done" ]; then
+    echo Skipping $num
+    continue
+  fi
   echo Ripping $num to $name
   eval $ripper 2>> rip.log | sox -t cdr - -t wav - | $comp > $name
   if [ $? -ne 0 ]; then
     echo "Failed!"
     exit 1
   fi
+  touch ".${num}.done"
 done
 
+rm .*.done
+