forked from CryHavoc/dottes
Correct Mac-ism. find -maxdepth n, not find -depth n.
This commit is contained in:
parent
01124b3d00
commit
51353e49b9
|
@ -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 -depth 1 -name "*.abc" | sort |
|
find $booke -maxdepth 1 -name "*.abc" | sort |
|
||||||
while read filename
|
while read filename
|
||||||
do
|
do
|
||||||
name=`basename $filename .abc`
|
name=`basename $filename .abc`
|
||||||
|
|
|
@ -17,7 +17,7 @@ graphicsdir=$dir/graphics/$1
|
||||||
mkdir -p $graphicsdir
|
mkdir -p $graphicsdir
|
||||||
|
|
||||||
# Now, for each tune, make the tune graphic.
|
# Now, for each tune, make the tune graphic.
|
||||||
find $booke -depth 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`
|
||||||
|
@ -48,7 +48,7 @@ if [ ! -d ${booke}/Compact ]; then
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
find ${booke}/Compact -depth 1 -name "*.abc" | sort |
|
find ${booke}/Compact -maxdepth 1 -name "*.abc" |
|
||||||
while read filename
|
while read filename
|
||||||
do
|
do
|
||||||
name=`basename $filename .abc`
|
name=`basename $filename .abc`
|
||||||
|
|
|
@ -67,7 +67,7 @@ cp $1-*.pdf $webdir
|
||||||
# Now, for each tune, make the tune page.
|
# Now, for each tune, make the tune page.
|
||||||
rm -f $webdir/$tunelist
|
rm -f $webdir/$tunelist
|
||||||
declare -a filenames
|
declare -a filenames
|
||||||
filenames=(`find $bookedir -depth 1 -name "*.abc" | sort`)
|
filenames=(`find $bookedir -maxdepth 1 -name "*.abc" | sort`)
|
||||||
nofiles=${#filenames[@]}
|
nofiles=${#filenames[@]}
|
||||||
for (( i=0; i < ${nofiles}; i++ ))
|
for (( i=0; i < ${nofiles}; i++ ))
|
||||||
do
|
do
|
||||||
|
|
|
@ -66,7 +66,7 @@ makeaudiofortempo()
|
||||||
}
|
}
|
||||||
|
|
||||||
# Generate audio files and slow speed (currently half speed) audio files.
|
# 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
|
while read filename
|
||||||
do
|
do
|
||||||
makeaudiofiles $filename
|
makeaudiofiles $filename
|
||||||
|
|
|
@ -20,7 +20,7 @@ mkdir -p $builddir
|
||||||
# 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 -depth 1 -name "*.abc" | sort |
|
find $booke -maxdepth 1 -name "*.abc" | sort |
|
||||||
while read filename
|
while read filename
|
||||||
do
|
do
|
||||||
name=`basename $filename .abc`
|
name=`basename $filename .abc`
|
||||||
|
|
Loading…
Reference in New Issue