forked from CryHavoc/dottes
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.
This commit is contained in:
parent
7f09e796d9
commit
b6a4389bca
|
@ -34,7 +34,7 @@ rm -f $tunesoutput $indexoutput
|
||||||
|
|
||||||
# Now, for each tune, build the tunes part and the first line sections
|
# Now, for each tune, build the tunes part and the first line sections
|
||||||
# of the document.
|
# of the document.
|
||||||
find $booke -maxdepth 1 -name "*.abc" | sort |
|
find $booke -maxdepth 1 -name "*.abc" | LC_ALL=C sort
|
||||||
while read filename
|
while read filename
|
||||||
do
|
do
|
||||||
name=`basename $filename .abc`
|
name=`basename $filename .abc`
|
||||||
|
|
|
@ -53,7 +53,7 @@ cp $booke/*.txt $booke/*.md $booke/image.jpg $outdir
|
||||||
|
|
||||||
echo "Cello" > $outdir/instrument.txt
|
echo "Cello" > $outdir/instrument.txt
|
||||||
|
|
||||||
find $booke -name "*.abc" | sort |
|
find $booke -name "*.abc" |
|
||||||
while read filename
|
while read filename
|
||||||
do
|
do
|
||||||
name=`basename $filename .abc`
|
name=`basename $filename .abc`
|
||||||
|
|
|
@ -25,7 +25,7 @@ cp $booke/*.txt $booke/*.md $booke/image.jpg $outdir
|
||||||
|
|
||||||
echo "Horn in F" > $outdir/instrument.txt
|
echo "Horn in F" > $outdir/instrument.txt
|
||||||
|
|
||||||
find $booke -name "*.abc" | sort |
|
find $booke -name "*.abc" |
|
||||||
while read filename
|
while read filename
|
||||||
do
|
do
|
||||||
name=`basename $filename .abc`
|
name=`basename $filename .abc`
|
||||||
|
|
|
@ -79,7 +79,7 @@ cp $1-*.pdf $bookewebdir
|
||||||
# Now, for each tune, make the tune page.
|
# Now, for each tune, make the tune page.
|
||||||
rm -f $bookewebdir/$tunelist
|
rm -f $bookewebdir/$tunelist
|
||||||
declare -a filenames
|
declare -a filenames
|
||||||
filenames=(`find $bookedir -maxdepth 1 -name "*.abc" | sort`)
|
filenames=(`find $bookedir -maxdepth 1 -name "*.abc" | LC_ALL=C sort`)
|
||||||
nofiles=${#filenames[@]}
|
nofiles=${#filenames[@]}
|
||||||
for (( i=0; i < ${nofiles}; i++ ))
|
for (( i=0; i < ${nofiles}; i++ ))
|
||||||
do
|
do
|
||||||
|
|
|
@ -79,7 +79,7 @@ Q: ${notelenprefix}${newtempo}" $1 > $tunedir/$newspeedfilename
|
||||||
}
|
}
|
||||||
|
|
||||||
# Generate audio files and slow speed (currently half speed) audio files.
|
# 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
|
while read filename
|
||||||
do
|
do
|
||||||
name=`basename $filename .abc`
|
name=`basename $filename .abc`
|
||||||
|
|
|
@ -24,7 +24,7 @@ fi
|
||||||
# Now, for each tune, make the main tune and tune first line bitmaps.
|
# 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
|
# Do this to temp files and rename into place to make updates as
|
||||||
# atomic as possible.
|
# atomic as possible.
|
||||||
find $booke -maxdepth 1 -name "*.abc" | sort |
|
find $booke -maxdepth 1 -name "*.abc" |
|
||||||
while read filename
|
while read filename
|
||||||
do
|
do
|
||||||
name=`basename $filename .abc`
|
name=`basename $filename .abc`
|
||||||
|
|
Loading…
Reference in New Issue