# HG changeset patch # User Jim Hague # Date 1479765435 0 # Node ID 4e92928fcfc2a5e3f0e31ee4d7979476ddd14a61 # Parent 9982077ac9b2d920cd0a41339e7ecbfa68e7e240 Enable a tune book to have a htaccess file, copied to .htaccess in web. diff -r 9982077ac9b2 -r 4e92928fcfc2 makeWeb.sh --- a/makeWeb.sh Thu Nov 10 00:47:55 2016 +0000 +++ b/makeWeb.sh Mon Nov 21 21:57:15 2016 +0000 @@ -48,13 +48,18 @@ 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