# HG changeset patch
# User Jim Hague <jim.hague@acm.org>
# Date 1505391268 -3600
# Node ID 7ad6c0aa958da1e114cc3c45c60775c6a359eb77
# Parent  49d72092b45e9f731c106aad01bec9d9b3708241
Strip any '-<instrument>' from section name for booke text.

diff -r 49d72092b45e -r 7ad6c0aa958d makeBooke.sh
--- a/makeBooke.sh	Thu Sep 14 13:14:00 2017 +0100
+++ b/makeBooke.sh	Thu Sep 14 13:14:28 2017 +0100
@@ -56,6 +56,8 @@
 while [ $# -gt 0 ]
 do
     section=$dir/$1
+    # Section name - strip any instrument name off the end.
+    sectionname=${1/-*/}
 
     for item in title subtitle instrument
     do
@@ -76,8 +78,8 @@
         fi
     done
 
-    sed -e "s/@SECTION@/$1/" dottes.tex.section-tunes >> $builddir/tunes.tex
-    sed -e "s/@SECTION@/$1/" dottes.tex.section-firstlines >> $builddir/firstlines.tex
+    sed -e "s/@SECTION@/$sectionname/" dottes.tex.section-tunes >> $builddir/tunes.tex
+    sed -e "s/@SECTION@/$sectionname/" dottes.tex.section-firstlines >> $builddir/firstlines.tex
 
     shift
 done