comparison makeWebItems.sh @ 61:3464d5154f49

Fix temp file name to convert. Convert works out what it is converting to from the extension. So adding .tmp stopped it converting to JPG. Doh!
author Jim Hague <jim.hague@acm.org>
date Mon, 05 Mar 2012 09:33:07 +0000
parents 6f4667d1372d
children 4754b1249dad
comparison
equal deleted inserted replaced
60:f6d2efb4bbef 61:3464d5154f49
21 # files and rename into place to make updates as atomic as possible. 21 # files and rename into place to make updates as atomic as possible.
22 find $booke -name "*.abc" | sort | 22 find $booke -name "*.abc" | sort |
23 while read filename 23 while read filename
24 do 24 do
25 name=`basename $filename .abc` 25 name=`basename $filename .abc`
26 convert $graphicsdir/${name}.eps $builddir/${name}.jpg.tmp 26 tmpname=${name}.tmp
27 convert $graphicsdir/${name}.eps $builddir/${tmpname}.jpg
27 28
28 abc2midi $filename -o $builddir/${name}.mid.tmp 29 abc2midi $filename -o $builddir/${tmpname}.mid
29 timidity -Ow -o $builddir/${name}.wav.tmp $builddir/${name}.mid.tmp 30 timidity -Ow -o $builddir/${tmpname}.wav $builddir/${tmpname}.mid
30 lame --quiet $builddir/${name}.wav.tmp $builddir/${name}.mp3.tmp 31 lame --quiet $builddir/${tmpname}.wav $builddir/${tmpname}.mp3
31 32
32 mv $builddir/${name}.jpg.tmp $builddir/${name}.jpg 33 mv $builddir/${tmpname}.jpg $builddir/${name}.jpg
33 mv $builddir/${name}.mid.tmp $builddir/${name}.mid 34 mv $builddir/${tmpname}.mid $builddir/${name}.mid
34 mv $builddir/${name}.mp3.tmp $builddir/${name}.mp3 35 mv $builddir/${tmpname}.mp3 $builddir/${name}.mp3
35 rm $builddir/${name}.wav.tmp 36 rm $builddir/${tmpname}.wav
36 done 37 done
37 38