Strip any '-<instrument>' from section name for booke text.

This commit is contained in:
Jim Hague 2017-09-14 13:14:28 +01:00
parent a7ea1e0a85
commit 9cd0fabe90
1 changed files with 4 additions and 2 deletions

View File

@ -56,6 +56,8 @@ rm -f $builddir/firstlines.tex
while [ $# -gt 0 ] while [ $# -gt 0 ]
do do
section=$dir/$1 section=$dir/$1
# Section name - strip any instrument name off the end.
sectionname=${1/-*/}
for item in title subtitle instrument for item in title subtitle instrument
do do
@ -76,8 +78,8 @@ do
fi fi
done done
sed -e "s/@SECTION@/$1/" dottes.tex.section-tunes >> $builddir/tunes.tex sed -e "s/@SECTION@/$sectionname/" 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-firstlines >> $builddir/firstlines.tex
shift shift
done done