diff --git a/makeBooke.sh b/makeBooke.sh index f7f19c2..03d489c 100755 --- a/makeBooke.sh +++ b/makeBooke.sh @@ -56,6 +56,8 @@ rm -f $builddir/firstlines.tex 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 @@ do 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