Rework makeAll.sh to make multiple Bookes and a Bumper Booke too.
The Bumper is made if more than 1 Booke is specified.
This commit is contained in:
parent
0d88a73405
commit
407ec5913d
23
makeAll.sh
23
makeAll.sh
|
@ -2,8 +2,8 @@
|
||||||
#
|
#
|
||||||
# Build all forms of the Booke.
|
# Build all forms of the Booke.
|
||||||
|
|
||||||
if [ $# != 1 ]; then
|
if [ $# -lt 1 ]; then
|
||||||
echo "Usage: makeAll.sh <book dir name>"
|
echo "Usage: makeAll.sh <booke dir name> [<booke dir name> ...]"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -32,6 +32,8 @@ makeATransposedBooke()
|
||||||
./makeWeb.sh "$1" "$2" "$3"
|
./makeWeb.sh "$1" "$2" "$3"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
makeASingleBooke()
|
||||||
|
{
|
||||||
makeABooke $1
|
makeABooke $1
|
||||||
|
|
||||||
./makeCello.sh $1
|
./makeCello.sh $1
|
||||||
|
@ -39,3 +41,20 @@ makeATransposedBooke $1-Cello $1 cello
|
||||||
|
|
||||||
./makeHornInF.sh $1
|
./makeHornInF.sh $1
|
||||||
makeATransposedBooke $1-HornInF $1 "horn in F"
|
makeATransposedBooke $1-HornInF $1 "horn in F"
|
||||||
|
}
|
||||||
|
|
||||||
|
makeBumperBooke()
|
||||||
|
{
|
||||||
|
# This can only be used once all the other Bookes have been built.
|
||||||
|
./makeBooke.sh A4 "$@"
|
||||||
|
./makeBooke.sh A5 "$@"
|
||||||
|
./makeBooklet.sh "Bumper"
|
||||||
|
}
|
||||||
|
|
||||||
|
for booke in "$@"
|
||||||
|
do
|
||||||
|
makeASingleBooke $booke
|
||||||
|
done
|
||||||
|
if [ $# -gt 1 ]; then
|
||||||
|
makeBumperBooke "$@"
|
||||||
|
fi
|
||||||
|
|
|
@ -35,9 +35,9 @@ if [ $# -eq 1 ]; then
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
bookename="BumperBooke"
|
bookename="Bumper"
|
||||||
echo "The Bumper Booke" > $builddir/title.txt
|
echo "The Bumper Booke" > $builddir/title.txt
|
||||||
echo "The collected Bookes of Bottes" > $builddir/subtitle.txt
|
echo "The collected Bookes of Dottes" > $builddir/subtitle.txt
|
||||||
rm -f $builddir/instrument.txt
|
rm -f $builddir/instrument.txt
|
||||||
if [ -r $1/instrument.txt ]; then
|
if [ -r $1/instrument.txt ]; then
|
||||||
cp $1/instrument.txt $builddir/instrument.txt
|
cp $1/instrument.txt $builddir/instrument.txt
|
||||||
|
|
Loading…
Reference in New Issue