# HG changeset patch # User Jim Hague # Date 1582110880 0 # Node ID 18f0e45207ef21c86f5253dbea01fb983bdc5147 # Parent 70e1ff83fe34605fb0855770986c3a412196044c Sort LC_ALL=C to get Linux sort to order Beginners as expected. Remove other unnecessary uses of sort. When generating intermediate files, it doesn't matter in what order it happens. diff -r 70e1ff83fe34 -r 18f0e45207ef makeBookeTunePages.sh --- a/makeBookeTunePages.sh Wed Feb 19 10:48:56 2020 +0000 +++ b/makeBookeTunePages.sh Wed Feb 19 11:14:40 2020 +0000 @@ -34,7 +34,7 @@ # 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 -r 70e1ff83fe34 -r 18f0e45207ef makeCello.sh --- a/makeCello.sh Wed Feb 19 10:48:56 2020 +0000 +++ b/makeCello.sh Wed Feb 19 11:14:40 2020 +0000 @@ -53,7 +53,7 @@ echo "Cello" > $outdir/instrument.txt -find $booke -name "*.abc" | sort | +find $booke -name "*.abc" | while read filename do name=`basename $filename .abc` diff -r 70e1ff83fe34 -r 18f0e45207ef makeHornInF.sh --- a/makeHornInF.sh Wed Feb 19 10:48:56 2020 +0000 +++ b/makeHornInF.sh Wed Feb 19 11:14:40 2020 +0000 @@ -25,7 +25,7 @@ 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 -r 70e1ff83fe34 -r 18f0e45207ef makeWeb.sh --- a/makeWeb.sh Wed Feb 19 10:48:56 2020 +0000 +++ b/makeWeb.sh Wed Feb 19 11:14:40 2020 +0000 @@ -79,7 +79,7 @@ # 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 -r 70e1ff83fe34 -r 18f0e45207ef makeWebAudio.sh --- a/makeWebAudio.sh Wed Feb 19 10:48:56 2020 +0000 +++ b/makeWebAudio.sh Wed Feb 19 11:14:40 2020 +0000 @@ -79,7 +79,7 @@ } # 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 -r 70e1ff83fe34 -r 18f0e45207ef makeWebGraphics.sh --- a/makeWebGraphics.sh Wed Feb 19 10:48:56 2020 +0000 +++ b/makeWebGraphics.sh Wed Feb 19 11:14:40 2020 +0000 @@ -24,7 +24,7 @@ # 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`