changeset 1031:18f0e45207ef

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.
author Jim Hague <jim.hague@acm.org>
date Wed, 19 Feb 2020 11:14:40 +0000
parents 70e1ff83fe34
children 59fc5829ece3
files makeBookeTunePages.sh makeCello.sh makeHornInF.sh makeWeb.sh makeWebAudio.sh makeWebGraphics.sh
diffstat 6 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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`
--- 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`
--- 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`
--- 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
--- 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`
--- 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`