Mercurial > dottes
comparison 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 |
comparison
equal
deleted
inserted
replaced
605:3f8a76acf7ad | 606:d5357ee6b4b2 |
---|---|
1 #!/bin/bash | 1 #!/bin/bash |
2 # | 2 # |
3 # Build all forms of the Booke. | 3 # Build all forms of the Booke. |
4 | 4 |
5 if [ $# != 1 ]; then | 5 if [ $# -lt 1 ]; then |
6 echo "Usage: makeAll.sh <book dir name>" | 6 echo "Usage: makeAll.sh <booke dir name> [<booke dir name> ...]" |
7 exit 1 | 7 exit 1 |
8 fi | 8 fi |
9 | 9 |
10 makeABooke() | 10 makeABooke() |
11 { | 11 { |
30 ./makeBooke.sh Nook "$1" | 30 ./makeBooke.sh Nook "$1" |
31 ./makeWebGraphics.sh "$1" | 31 ./makeWebGraphics.sh "$1" |
32 ./makeWeb.sh "$1" "$2" "$3" | 32 ./makeWeb.sh "$1" "$2" "$3" |
33 } | 33 } |
34 | 34 |
35 makeABooke $1 | 35 makeASingleBooke() |
36 { | |
37 makeABooke $1 | |
36 | 38 |
37 ./makeCello.sh $1 | 39 ./makeCello.sh $1 |
38 makeATransposedBooke $1-Cello $1 cello | 40 makeATransposedBooke $1-Cello $1 cello |
39 | 41 |
40 ./makeHornInF.sh $1 | 42 ./makeHornInF.sh $1 |
41 makeATransposedBooke $1-HornInF $1 "horn in F" | 43 makeATransposedBooke $1-HornInF $1 "horn in F" |
44 } | |
45 | |
46 makeBumperBooke() | |
47 { | |
48 # This can only be used once all the other Bookes have been built. | |
49 ./makeBooke.sh A4 "$@" | |
50 ./makeBooke.sh A5 "$@" | |
51 ./makeBooklet.sh "Bumper" | |
52 } | |
53 | |
54 for booke in "$@" | |
55 do | |
56 makeASingleBooke $booke | |
57 done | |
58 if [ $# -gt 1 ]; then | |
59 makeBumperBooke "$@" | |
60 fi |