Mercurial > dottes
diff makeBooke.sh @ 814:f5f6517a8bdf build-default-305
Add section picture to the section title page on printed Bookes only.
I guess these could be added to be website, but right now I don't think
they'd add much. On paper, they fill some blank space.
author | Jim Hague <jim.hague@acm.org> |
---|---|
date | Mon, 11 Jun 2018 09:47:58 +0100 |
parents | ce5c7214f9aa |
children | 7cc06a68a572 |
line wrap: on
line diff
--- a/makeBooke.sh Sun Jun 10 14:14:46 2018 +0100 +++ b/makeBooke.sh Mon Jun 11 09:47:58 2018 +0100 @@ -65,13 +65,13 @@ # Section name - strip any instrument name off the end. sectionname=${1/-*/} - for item in title subtitle instrument + for item in title.txt subtitle.txt instrument.txt image.jpg do - rm -f $builddir/$1-$item.txt - if [ -r $section/$item.txt ]; then - cp $section/$item.txt $builddir/$1-$item.txt + rm -f $builddir/$1-$item + if [ -r $section/$item ]; then + cp $section/$item $builddir/$1-$item else - touch $builddir/$1-$item.txt + touch $builddir/$1-$item fi done for item in intro