From 9cd0fabe903baa312b3f1bf4539d38728b194997 Mon Sep 17 00:00:00 2001 From: Jim Hague Date: Thu, 14 Sep 2017 13:14:28 +0100 Subject: [PATCH] Strip any '-' from section name for booke text. --- makeBooke.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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