--- solfege-3.16.2/exercises/standard/lesson-files/bin/csound-play-harmonic-interval.sh.orig 2005-09-09 16:03:12.000000000 +0200 +++ solfege-3.16.2/exercises/standard/lesson-files/bin/csound-play-harmonic-interval.sh 2005-09-09 16:05:31.000000000 +0200 @@ -10,13 +10,9 @@ set -e -TMPDIR=/tmp/solfegetmpdir.$$ - -umask 027 # or 077 -rm -rf $TMPDIR -mkdir $TMPDIR || exit 1 +TMPDIR=`mktemp -d /tmp/$0.XXXXXX` || exit 1 +trap 'rm -rf $TMPDIR' 0 1 2 3 6 7 13 15 sed -e "s/440/$1/" -e "s/660/$2/" share/fil1.sco >$TMPDIR/solfege-csound.sco csound share/fil1.orc $TMPDIR/solfege-csound.sco -W -g -o devaudio -rm -rf $TMPDIR ../BUILD/solfege-3.16.2/exercises/standard/lesson-files/bin/csound-play-harmonic-interval.sh