changeset 882:b2c0a05edf11 build-default-324

Automated merge with ssh://hg.cryhavoc.org.uk/dottes
author Jim Hague <jim.hague@acm.org>
date Wed, 27 Mar 2019 10:48:23 +0000
parents 2823cf9cab68 (current diff) 94c7a0a3158c (diff)
children 13d8031de4dc 6b0ec85668ea
files
diffstat 2 files changed, 41 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
Binary file Morris/image.jpg has changed
--- a/makeAll.sh	Wed Mar 27 00:08:20 2019 +0000
+++ b/makeAll.sh	Wed Mar 27 10:48:23 2019 +0000
@@ -69,20 +69,55 @@
 makeABumperBooke()
 {
     # This can only be used once all the other Bookes have been built.
-    ./makeBookeTunePages.sh "$1"
+    for booke in "$@"
+    do
+        ./makeBookeTunePages.sh "${booke}"
+    done
     ./makeBooke.sh A4 "$@"
-    ./makeBookeTunePages.sh --use-compact "$1"
+    for booke in "$@"
+    do
+        ./makeBookeTunePages.sh --use-compact "${booke}"
+    done
     ./makeBooke.sh A5 "$@"
     ./makeBooklet.sh "Bumper"
 }
 
 makeBumperBookes()
 {
-    makeABumperBooke $1
+    makeABumperBooke "$@"
+    for f in Bumper*.pdf
+    do
+        mv $f ./web
+    done
+
+    local cellobumper
+    local hornbumber
+    local recorderbumper
 
-    #makeABumperBooke $1-Cello
-    #makeABumperBooke $1-HornInF
-    #makeABumperBooke $1-AltoRecorderCFingering
+    for booke in "$@"
+    do
+        cellobumper+=("${booke}-Cello")
+        hornbumper+=("${booke}-HornInF")
+        recorderbumper+=("${booke}-AltoRecorderCFingering")
+    done
+    makeABumperBooke "${cellobumper[@]}"
+    for f in Bumper*.pdf
+    do
+        t=$(echo $f | sed -e "s/.pdf/-Cello.pdf/")
+        mv $f ./web/$t
+    done
+    makeABumperBooke "${hornbumper[@]}"
+    for f in Bumper*.pdf
+    do
+        t=$(echo $f | sed -e "s/.pdf/-HornInF.pdf/")
+        mv $f ./web/$t
+    done
+    makeABumperBooke "${recorderbumper[@]}"
+    for f in Bumper*.pdf
+    do
+        t=$(echo $f | sed -e "s/.pdf/-AltoRecorderCFingering.pdf/")
+        mv $f ./web/$t
+    done
 }
 
 declare buildBookes
@@ -104,5 +139,4 @@
 done
 if [[ ${#bumperBookes[@]} -gt 1 ]]; then
     makeBumperBookes "${bumperBookes[@]}"
-    cp Bumper*.pdf ./web
 fi