Correct Mac-ism. find -maxdepth n, not find -depth n.

This commit is contained in:
Jim Hague 2017-10-13 17:19:06 +01:00
parent 01124b3d00
commit 51353e49b9
5 changed files with 6 additions and 6 deletions

View File

@ -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`

View File

@ -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`

View File

@ -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

View File

@ -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

View File

@ -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`