Mercurial > dottes
comparison makeAll.sh @ 876:1a838d8dca2a
Fix building transposed bookes.
author | Jim Hague <jim.hague@acm.org> |
---|---|
date | Tue, 26 Mar 2019 17:54:07 +0000 |
parents | d6f1f2b3bd01 |
children | 94c7a0a3158c |
comparison
equal
deleted
inserted
replaced
875:6b60f40f7113 | 876:1a838d8dca2a |
---|---|
8 if [[ $# -lt 1 ]]; then | 8 if [[ $# -lt 1 ]]; then |
9 echo "Usage: makeAll.sh <booke dir name> [<booke dir name> ...]" | 9 echo "Usage: makeAll.sh <booke dir name> [<booke dir name> ...]" |
10 exit 1 | 10 exit 1 |
11 fi | 11 fi |
12 | 12 |
13 makeABooke() | 13 # Make the print version of a booke. |
14 # Params: <booke dir> | |
15 makeBookePrint() | |
14 { | 16 { |
15 # Print graphics. | 17 # Print graphics. |
16 ./makeGraphics.sh "$1" | 18 ./makeGraphics.sh "$1" |
17 | 19 |
18 # Normal graphics printed output. | 20 # Normal graphics printed output. |
22 | 24 |
23 # Compact graphics printed output. | 25 # Compact graphics printed output. |
24 ./makeBookeTunePages.sh --use-compact "$1" | 26 ./makeBookeTunePages.sh --use-compact "$1" |
25 ./makeBooke.sh A5 "$1" | 27 ./makeBooke.sh A5 "$1" |
26 ./makeBooklet.sh "$1" | 28 ./makeBooklet.sh "$1" |
29 } | |
30 | |
31 # Make a single booke. | |
32 # Params: <booke dir> [<instrument name>] | |
33 makeABooke() | |
34 { | |
35 makeBookePrint "$1" | |
27 | 36 |
28 # Web output. | 37 # Web output. |
29 ./makeWebGraphics.sh "$1" | 38 ./makeWebGraphics.sh "$1" |
30 ./makeWebAudio.sh "$1" | 39 ./makeWebAudio.sh "$1" |
31 ./makeWeb.sh "$1" "$1" "$2" | 40 ./makeWeb.sh "$1" "$1" "$2" |
32 } | 41 } |
33 | 42 |
43 # Make a single transposed booke. We use web audio from the | |
44 # master booke. | |
45 # Params: <booke dir> <master booke dir> [<instrument name>] | |
34 makeATransposedBooke() | 46 makeATransposedBooke() |
35 { | 47 { |
36 # Print graphics. | 48 makeBookePrint "$1" |
37 ./makeGraphics.sh "$1" | |
38 | |
39 # Normal graphics printed output. | |
40 ./makeBookeTunePages.sh "$1" | |
41 ./makeBooke.sh A4 "$1" | |
42 ./makeBooke.sh Nook "$1" | |
43 | |
44 # Compact graphics printed output. | |
45 ./makeBookeTunePages.sh --use-compact "$1" | |
46 ./makeBooke.sh A5 "$1" | |
47 ./makeBooklet.sh "$1" | |
48 | 49 |
49 # Web output. Uses audio from main booke. | 50 # Web output. Uses audio from main booke. |
50 ./makeWebGraphics.sh "$1" | 51 ./makeWebGraphics.sh "$1" |
51 ./makeWeb.sh "$1" "$2" "$3" | 52 ./makeWeb.sh "$1" "$2" "$3" |
52 } | 53 } |
63 | 64 |
64 ./makeAltoRecorderCFingering.sh $1 | 65 ./makeAltoRecorderCFingering.sh $1 |
65 makeATransposedBooke $1-AltoRecorderCFingering $1 "alto recorder, C fingering" | 66 makeATransposedBooke $1-AltoRecorderCFingering $1 "alto recorder, C fingering" |
66 } | 67 } |
67 | 68 |
68 makeBumperBooke() | 69 makeABumperBooke() |
69 { | 70 { |
70 # This can only be used once all the other Bookes have been built. | 71 # This can only be used once all the other Bookes have been built. |
72 ./makeBookeTunePages.sh "$1" | |
71 ./makeBooke.sh A4 "$@" | 73 ./makeBooke.sh A4 "$@" |
74 ./makeBookeTunePages.sh --use-compact "$1" | |
72 ./makeBooke.sh A5 "$@" | 75 ./makeBooke.sh A5 "$@" |
73 ./makeBooklet.sh "Bumper" | 76 ./makeBooklet.sh "Bumper" |
77 } | |
78 | |
79 makeBumperBookes() | |
80 { | |
81 makeABumperBooke $1 | |
82 | |
83 #makeABumperBooke $1-Cello | |
84 #makeABumperBooke $1-HornInF | |
85 #makeABumperBooke $1-AltoRecorderCFingering | |
74 } | 86 } |
75 | 87 |
76 declare buildBookes | 88 declare buildBookes |
77 declare bumperBookes | 89 declare bumperBookes |
78 | 90 |
89 for booke in "${buildBookes[@]}" | 101 for booke in "${buildBookes[@]}" |
90 do | 102 do |
91 makeASingleBooke $booke | 103 makeASingleBooke $booke |
92 done | 104 done |
93 if [[ ${#bumperBookes[@]} -gt 1 ]]; then | 105 if [[ ${#bumperBookes[@]} -gt 1 ]]; then |
94 makeBumperBooke "${bumperBookes[@]}" | 106 makeBumperBookes "${bumperBookes[@]}" |
95 cp Bumper*.pdf ./web | 107 cp Bumper*.pdf ./web |
96 fi | 108 fi |