# HG changeset patch # User Jim Hague # Date 1507911546 -3600 # Node ID b83b49f2a0a0b6bf38872dffc0dce50f7c955145 # Parent 9a6c27f6d13dd6ea5e5b74e605c29b5e5bd24f62 Correct Mac-ism. find -maxdepth n, not find -depth n. diff -r 9a6c27f6d13d -r b83b49f2a0a0 makeBookeTunePages.sh --- a/makeBookeTunePages.sh Fri Oct 13 16:17:56 2017 +0100 +++ b/makeBookeTunePages.sh Fri Oct 13 17:19:06 2017 +0100 @@ -34,7 +34,7 @@ # Now, for each tune, build the tunes part and the first line sections # of the document. -find $booke -depth 1 -name "*.abc" | sort | +find $booke -maxdepth 1 -name "*.abc" | sort | while read filename do name=`basename $filename .abc` diff -r 9a6c27f6d13d -r b83b49f2a0a0 makeGraphics.sh --- a/makeGraphics.sh Fri Oct 13 16:17:56 2017 +0100 +++ b/makeGraphics.sh Fri Oct 13 17:19:06 2017 +0100 @@ -17,7 +17,7 @@ mkdir -p $graphicsdir # Now, for each tune, make the tune graphic. -find $booke -depth 1 -name "*.abc" | sort | +find $booke -maxdepth 1 -name "*.abc" | while read filename do name=`basename $filename .abc` @@ -48,7 +48,7 @@ exit fi -find ${booke}/Compact -depth 1 -name "*.abc" | sort | +find ${booke}/Compact -maxdepth 1 -name "*.abc" | while read filename do name=`basename $filename .abc` diff -r 9a6c27f6d13d -r b83b49f2a0a0 makeWeb.sh --- a/makeWeb.sh Fri Oct 13 16:17:56 2017 +0100 +++ b/makeWeb.sh Fri Oct 13 17:19:06 2017 +0100 @@ -67,7 +67,7 @@ # Now, for each tune, make the tune page. rm -f $webdir/$tunelist declare -a filenames -filenames=(`find $bookedir -depth 1 -name "*.abc" | sort`) +filenames=(`find $bookedir -maxdepth 1 -name "*.abc" | sort`) nofiles=${#filenames[@]} for (( i=0; i < ${nofiles}; i++ )) do diff -r 9a6c27f6d13d -r b83b49f2a0a0 makeWebAudio.sh --- a/makeWebAudio.sh Fri Oct 13 16:17:56 2017 +0100 +++ b/makeWebAudio.sh Fri Oct 13 17:19:06 2017 +0100 @@ -66,7 +66,7 @@ } # Generate audio files and slow speed (currently half speed) audio files. -find $booke -depth 1 -name "*.abc" | sort | +find $booke -maxdepth 1 -name "*.abc" | sort | while read filename do makeaudiofiles $filename diff -r 9a6c27f6d13d -r b83b49f2a0a0 makeWebGraphics.sh --- a/makeWebGraphics.sh Fri Oct 13 16:17:56 2017 +0100 +++ b/makeWebGraphics.sh Fri Oct 13 17:19:06 2017 +0100 @@ -20,7 +20,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 -depth 1 -name "*.abc" | sort | +find $booke -maxdepth 1 -name "*.abc" | sort | while read filename do name=`basename $filename .abc`