Mercurial > dottes
comparison makeAll.sh @ 881:94c7a0a3158c
Fix Bumper Booke generation and add Bumper transpositions.
author | Jim Hague <jim.hague@acm.org> |
---|---|
date | Wed, 27 Mar 2019 10:48:17 +0000 |
parents | 1a838d8dca2a |
children | 7d651994b776 |
comparison
equal
deleted
inserted
replaced
880:4104c340ede6 | 881:94c7a0a3158c |
---|---|
67 } | 67 } |
68 | 68 |
69 makeABumperBooke() | 69 makeABumperBooke() |
70 { | 70 { |
71 # 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" | 72 for booke in "$@" |
73 do | |
74 ./makeBookeTunePages.sh "${booke}" | |
75 done | |
73 ./makeBooke.sh A4 "$@" | 76 ./makeBooke.sh A4 "$@" |
74 ./makeBookeTunePages.sh --use-compact "$1" | 77 for booke in "$@" |
78 do | |
79 ./makeBookeTunePages.sh --use-compact "${booke}" | |
80 done | |
75 ./makeBooke.sh A5 "$@" | 81 ./makeBooke.sh A5 "$@" |
76 ./makeBooklet.sh "Bumper" | 82 ./makeBooklet.sh "Bumper" |
77 } | 83 } |
78 | 84 |
79 makeBumperBookes() | 85 makeBumperBookes() |
80 { | 86 { |
81 makeABumperBooke $1 | 87 makeABumperBooke "$@" |
88 for f in Bumper*.pdf | |
89 do | |
90 mv $f ./web | |
91 done | |
82 | 92 |
83 #makeABumperBooke $1-Cello | 93 local cellobumper |
84 #makeABumperBooke $1-HornInF | 94 local hornbumber |
85 #makeABumperBooke $1-AltoRecorderCFingering | 95 local recorderbumper |
96 | |
97 for booke in "$@" | |
98 do | |
99 cellobumper+=("${booke}-Cello") | |
100 hornbumper+=("${booke}-HornInF") | |
101 recorderbumper+=("${booke}-AltoRecorderCFingering") | |
102 done | |
103 makeABumperBooke "${cellobumper[@]}" | |
104 for f in Bumper*.pdf | |
105 do | |
106 t=$(echo $f | sed -e "s/.pdf/-Cello.pdf/") | |
107 mv $f ./web/$t | |
108 done | |
109 makeABumperBooke "${hornbumper[@]}" | |
110 for f in Bumper*.pdf | |
111 do | |
112 t=$(echo $f | sed -e "s/.pdf/-HornInF.pdf/") | |
113 mv $f ./web/$t | |
114 done | |
115 makeABumperBooke "${recorderbumper[@]}" | |
116 for f in Bumper*.pdf | |
117 do | |
118 t=$(echo $f | sed -e "s/.pdf/-AltoRecorderCFingering.pdf/") | |
119 mv $f ./web/$t | |
120 done | |
86 } | 121 } |
87 | 122 |
88 declare buildBookes | 123 declare buildBookes |
89 declare bumperBookes | 124 declare bumperBookes |
90 | 125 |
102 do | 137 do |
103 makeASingleBooke $booke | 138 makeASingleBooke $booke |
104 done | 139 done |
105 if [[ ${#bumperBookes[@]} -gt 1 ]]; then | 140 if [[ ${#bumperBookes[@]} -gt 1 ]]; then |
106 makeBumperBookes "${bumperBookes[@]}" | 141 makeBumperBookes "${bumperBookes[@]}" |
107 cp Bumper*.pdf ./web | |
108 fi | 142 fi |