Mercurial > dottes
diff makeBookeTunePages.sh @ 581:760d0ae5acea
Revise abcfield.py to recognise continuation fields.
Also default to HTML entity output, and replace --contains with
--starts, which does the same thing but checks only the start of
the line and removes the matched item.
author | Jim Hague <jim.hague@acm.org> |
---|---|
date | Sat, 29 Oct 2016 19:32:53 +0100 |
parents | b44fbcaeba38 |
children | daa3b76bd11f |
line wrap: on
line diff
--- a/makeBookeTunePages.sh Sun Oct 16 17:41:56 2016 +0100 +++ b/makeBookeTunePages.sh Sat Oct 29 19:32:53 2016 +0100 @@ -46,7 +46,7 @@ subtitle=$retval composer=`$dir/abcfield.py --field C --latex $filename` - changefile=`$dir/abcfield.py --field N --contains "Change:" $filename | sed -e "s/Change: *//"` + changefile=`$dir/abcfield.py --field N --starts "Change:" $filename` changename="" changetitle="" if [ -n "$changefile" ]; then @@ -56,7 +56,7 @@ changetitle=$retval fi - credit=`$dir/abcfield.py --field N --contains "Credit:" $filename | sed -e "s/Credit: *//"` + credit=`$dir/abcfield.py --field N --starts "Credit:" $filename` echo -E "\showtune{$name}{$title}{$subtitle}{$composer}{$graphicsdir/$name}{$changename}{$changetitle}{$credit}" >> $tunesoutput echo -E "\showfirstline{$name}{$title}{$graphicsdir/firstline-$name}" >> $indexoutput