From 1155d9d257062bff1b07517b7c7a6f5ebcf05880 Mon Sep 17 00:00:00 2001 From: Jim Hague Date: Mon, 21 Nov 2016 21:57:15 +0000 Subject: [PATCH] Enable a tune book to have a htaccess file, copied to .htaccess in web. --- makeWeb.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/makeWeb.sh b/makeWeb.sh index 8b21f8a..e8a3e14 100755 --- a/makeWeb.sh +++ b/makeWeb.sh @@ -48,13 +48,18 @@ sed -e "s/@BUILD@/$buildno/" -e "s/@SUBTITLE@/$subtitle/" \ for item in intro do rm -f $webdir/$item.html - if [ -r $booke/$item.md ]; then - pandoc --from=markdown --to=html --output=$webdir/$item.html $booke/$item.md + if [ -r $bookedir/$item.md ]; then + pandoc --from=markdown --to=html --output=$webdir/$item.html $bookedir/$item.md else touch $webdir/$item.html fi done +# Copy in any htaccess. +if [ -r $masterbookedir/htaccess ]; then + cp $masterbookedir/htaccess $webdir/.htaccess +fi + # Copy in the book PDFs. Like the graphics, Midi etc. these are assumed # to be already generated. cp $1-*.pdf $webdir