diff --git a/makeBookeTunePages.sh b/makeBookeTunePages.sh index 8b52428..389e512 100755 --- a/makeBookeTunePages.sh +++ b/makeBookeTunePages.sh @@ -34,7 +34,7 @@ rm -f $tunesoutput $indexoutput # Now, for each tune, build the tunes part and the first line sections # of the document. -find $booke -maxdepth 1 -name "*.abc" | sort | +find $booke -maxdepth 1 -name "*.abc" | LC_ALL=C sort while read filename do name=`basename $filename .abc` diff --git a/makeCello.sh b/makeCello.sh index e73d370..2a03db8 100755 --- a/makeCello.sh +++ b/makeCello.sh @@ -53,7 +53,7 @@ cp $booke/*.txt $booke/*.md $booke/image.jpg $outdir echo "Cello" > $outdir/instrument.txt -find $booke -name "*.abc" | sort | +find $booke -name "*.abc" | while read filename do name=`basename $filename .abc` diff --git a/makeHornInF.sh b/makeHornInF.sh index 1993b6d..f9ce5a1 100755 --- a/makeHornInF.sh +++ b/makeHornInF.sh @@ -25,7 +25,7 @@ cp $booke/*.txt $booke/*.md $booke/image.jpg $outdir echo "Horn in F" > $outdir/instrument.txt -find $booke -name "*.abc" | sort | +find $booke -name "*.abc" | while read filename do name=`basename $filename .abc` diff --git a/makeWeb.sh b/makeWeb.sh index be1c362..9830b9c 100755 --- a/makeWeb.sh +++ b/makeWeb.sh @@ -79,7 +79,7 @@ cp $1-*.pdf $bookewebdir # Now, for each tune, make the tune page. rm -f $bookewebdir/$tunelist declare -a filenames -filenames=(`find $bookedir -maxdepth 1 -name "*.abc" | sort`) +filenames=(`find $bookedir -maxdepth 1 -name "*.abc" | LC_ALL=C sort`) nofiles=${#filenames[@]} for (( i=0; i < ${nofiles}; i++ )) do diff --git a/makeWebAudio.sh b/makeWebAudio.sh index 6d08e90..8a478d8 100755 --- a/makeWebAudio.sh +++ b/makeWebAudio.sh @@ -79,7 +79,7 @@ Q: ${notelenprefix}${newtempo}" $1 > $tunedir/$newspeedfilename } # Generate audio files and slow speed (currently half speed) audio files. -find $booke -maxdepth 1 -name "*.abc" | sort | +find $booke -maxdepth 1 -name "*.abc" | while read filename do name=`basename $filename .abc` diff --git a/makeWebGraphics.sh b/makeWebGraphics.sh index 66c98e9..f149ac8 100755 --- a/makeWebGraphics.sh +++ b/makeWebGraphics.sh @@ -24,7 +24,7 @@ fi # Now, for each tune, make the main tune and tune first line bitmaps. # Do this to temp files and rename into place to make updates as # atomic as possible. -find $booke -maxdepth 1 -name "*.abc" | sort | +find $booke -maxdepth 1 -name "*.abc" | while read filename do name=`basename $filename .abc`