Mercurial > dottes
diff makeAll.sh @ 606:d5357ee6b4b2 build-default-244
Rework makeAll.sh to make multiple Bookes and a Bumper Booke too.
The Bumper is made if more than 1 Booke is specified.
author | Jim Hague <jim.hague@acm.org> |
---|---|
date | Fri, 04 Nov 2016 22:41:57 +0000 |
parents | ef0d66742e01 |
children | ac7d039116c4 |
line wrap: on
line diff
--- a/makeAll.sh Fri Nov 04 18:52:47 2016 +0000 +++ b/makeAll.sh Fri Nov 04 22:41:57 2016 +0000 @@ -2,8 +2,8 @@ # # Build all forms of the Booke. -if [ $# != 1 ]; then - echo "Usage: makeAll.sh <book dir name>" +if [ $# -lt 1 ]; then + echo "Usage: makeAll.sh <booke dir name> [<booke dir name> ...]" exit 1 fi @@ -32,10 +32,29 @@ ./makeWeb.sh "$1" "$2" "$3" } -makeABooke $1 +makeASingleBooke() +{ + makeABooke $1 + + ./makeCello.sh $1 + makeATransposedBooke $1-Cello $1 cello + + ./makeHornInF.sh $1 + makeATransposedBooke $1-HornInF $1 "horn in F" +} -./makeCello.sh $1 -makeATransposedBooke $1-Cello $1 cello +makeBumperBooke() +{ + # This can only be used once all the other Bookes have been built. + ./makeBooke.sh A4 "$@" + ./makeBooke.sh A5 "$@" + ./makeBooklet.sh "Bumper" +} -./makeHornInF.sh $1 -makeATransposedBooke $1-HornInF $1 "horn in F" +for booke in "$@" +do + makeASingleBooke $booke +done +if [ $# -gt 1 ]; then + makeBumperBooke "$@" +fi