Fix up problems in Horn in F transposition.
authorJim Hague <jim.hague@laicatc.com>
Wed, 20 Feb 2013 13:45:58 +0000
changeset 217 a8a46fd79d5c
parent 216 64b84dea3337
child 218 1a9d937b7765
Fix up problems in Horn in F transposition. 1. Ensure makeWeb.sh gets its second parameter quoted, to allow for spaces in it. 2. Don't forget to copy the component text items into the horn dir. 3. Fix removing transposition tag from page title.
makeAll.sh
makeHornInF.sh
makeWeb.sh
--- a/makeAll.sh	Wed Feb 20 13:03:40 2013 +0000
+++ b/makeAll.sh	Wed Feb 20 13:45:58 2013 +0000
@@ -9,11 +9,11 @@
 
 makeABooke()
 {
-    ./makeGraphics.sh $1
-    ./makeBookeA5.sh $1
-    ./makeBookeA4.sh $1
-    ./makeWebItems.sh $1
-    ./makeWeb.sh $1 $2
+    ./makeGraphics.sh "$1"
+    ./makeBookeA5.sh "$1"
+    ./makeBookeA4.sh "$1"
+    ./makeWebItems.sh "$1"
+    ./makeWeb.sh "$1" "$2"
 }
 
 makeABooke $1
--- a/makeHornInF.sh	Wed Feb 20 13:03:40 2013 +0000
+++ b/makeHornInF.sh	Wed Feb 20 13:45:58 2013 +0000
@@ -14,6 +14,9 @@
 
 mkdir -p $outdir
 
+# Copy book component items.
+cp $booke/*.txt $outdir
+
 find $booke -name "*.abc" | sort |
     while read filename
     do
--- a/makeWeb.sh	Wed Feb 20 13:03:40 2013 +0000
+++ b/makeWeb.sh	Wed Feb 20 13:45:58 2013 +0000
@@ -29,7 +29,8 @@
 fi
 
 if [ -n "$2" ]; then
-    title="${title/-.*$//} ($2)"
+    # Remove any transposition tag from title.
+    title="${title/-*/} ($2)"
     subtitle="${subtitle} ($2)"
 fi