From 51353e49b91c6c30bedba86ce56c52ab9b1148b2 Mon Sep 17 00:00:00 2001 From: Jim Hague Date: Fri, 13 Oct 2017 17:19:06 +0100 Subject: [PATCH] Correct Mac-ism. find -maxdepth n, not find -depth n. --- makeBookeTunePages.sh | 2 +- makeGraphics.sh | 4 ++-- makeWeb.sh | 2 +- makeWebAudio.sh | 2 +- makeWebGraphics.sh | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/makeBookeTunePages.sh b/makeBookeTunePages.sh index 90a7e86..8b52428 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 -depth 1 -name "*.abc" | sort | +find $booke -maxdepth 1 -name "*.abc" | sort | while read filename do name=`basename $filename .abc` diff --git a/makeGraphics.sh b/makeGraphics.sh index 4e31c0f..ed77ef3 100755 --- a/makeGraphics.sh +++ b/makeGraphics.sh @@ -17,7 +17,7 @@ graphicsdir=$dir/graphics/$1 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 @@ if [ ! -d ${booke}/Compact ]; then 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 --git a/makeWeb.sh b/makeWeb.sh index 7944095..1c89b08 100755 --- a/makeWeb.sh +++ b/makeWeb.sh @@ -67,7 +67,7 @@ cp $1-*.pdf $webdir # 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 --git a/makeWebAudio.sh b/makeWebAudio.sh index df8d9dc..1d6da1b 100755 --- a/makeWebAudio.sh +++ b/makeWebAudio.sh @@ -66,7 +66,7 @@ makeaudiofortempo() } # 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 --git a/makeWebGraphics.sh b/makeWebGraphics.sh index 47abb50..5828711 100755 --- a/makeWebGraphics.sh +++ b/makeWebGraphics.sh @@ -20,7 +20,7 @@ mkdir -p $builddir # 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`