changeset 677:b45a87f4ccdb

Make sure section names strip any '-<instrument>' filename decoration.
author Jim Hague <jim.hague@acm.org>
date Thu, 14 Sep 2017 14:11:00 +0100
parents 6714a7e36313
children dff7d9fb81b3
files dottes.tex.section-firstlines dottes.tex.section-tunes makeBooke.sh
diffstat 3 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/dottes.tex.section-firstlines	Thu Sep 14 14:09:48 2017 +0100
+++ b/dottes.tex.section-firstlines	Thu Sep 14 14:11:00 2017 +0100
@@ -1,4 +1,4 @@
-\section{@SECTION@ tunes}
+\section{@SECTIONNAME@ tunes}
 
 {\renewcommand{\arraystretch}{2.5}
 \setlength\LTleft{0pt}
--- a/dottes.tex.section-tunes	Thu Sep 14 14:09:48 2017 +0100
+++ b/dottes.tex.section-tunes	Thu Sep 14 14:11:00 2017 +0100
@@ -2,7 +2,7 @@
 
 \newpage
 
-\addcontentsline{toc}{chapter}{@SECTION@ tunes}
+\addcontentsline{toc}{chapter}{@SECTIONNAME@ tunes}
 
 \vspace*{\fill}
 
--- a/makeBooke.sh	Thu Sep 14 14:09:48 2017 +0100
+++ b/makeBooke.sh	Thu Sep 14 14:11:00 2017 +0100
@@ -78,8 +78,8 @@
         fi
     done
 
-    sed -e "s/@SECTION@/$sectionname/" dottes.tex.section-tunes >> $builddir/tunes.tex
-    sed -e "s/@SECTION@/$sectionname/" dottes.tex.section-firstlines >> $builddir/firstlines.tex
+    sed -e "s/@SECTION@/$1/" -e "s/@SECTIONNAME@/$sectionname/" dottes.tex.section-tunes >> $builddir/tunes.tex
+    sed -e "s/@SECTION@/$1/" -e "s/@SECTIONNAME@/$sectionname/" dottes.tex.section-firstlines >> $builddir/firstlines.tex
 
     shift
 done