diff --git a/makeWebItems.sh b/makeWebItems.sh index 922b305..1dfc30a 100755 --- a/makeWebItems.sh +++ b/makeWebItems.sh @@ -23,15 +23,16 @@ find $booke -name "*.abc" | sort | while read filename do name=`basename $filename .abc` - convert $graphicsdir/${name}.eps $builddir/${name}.jpg.tmp + tmpname=${name}.tmp + convert $graphicsdir/${name}.eps $builddir/${tmpname}.jpg - abc2midi $filename -o $builddir/${name}.mid.tmp - timidity -Ow -o $builddir/${name}.wav.tmp $builddir/${name}.mid.tmp - lame --quiet $builddir/${name}.wav.tmp $builddir/${name}.mp3.tmp + abc2midi $filename -o $builddir/${tmpname}.mid + timidity -Ow -o $builddir/${tmpname}.wav $builddir/${tmpname}.mid + lame --quiet $builddir/${tmpname}.wav $builddir/${tmpname}.mp3 - mv $builddir/${name}.jpg.tmp $builddir/${name}.jpg - mv $builddir/${name}.mid.tmp $builddir/${name}.mid - mv $builddir/${name}.mp3.tmp $builddir/${name}.mp3 - rm $builddir/${name}.wav.tmp + mv $builddir/${tmpname}.jpg $builddir/${name}.jpg + mv $builddir/${tmpname}.mid $builddir/${name}.mid + mv $builddir/${tmpname}.mp3 $builddir/${name}.mp3 + rm $builddir/${tmpname}.wav done