Mercurial > dottes
comparison makeWeb.sh @ 651:4e92928fcfc2
Enable a tune book to have a htaccess file, copied to .htaccess in web.
author | Jim Hague <jim.hague@acm.org> |
---|---|
date | Mon, 21 Nov 2016 21:57:15 +0000 |
parents | afc031477784 |
children | f8ab14cc9d8d |
comparison
equal
deleted
inserted
replaced
650:9982077ac9b2 | 651:4e92928fcfc2 |
---|---|
46 -e "s/@TITLE@/$title/" -e "s/@BOOK@/$booke/" dottes.html > $webdir/$output | 46 -e "s/@TITLE@/$title/" -e "s/@BOOK@/$booke/" dottes.html > $webdir/$output |
47 | 47 |
48 for item in intro | 48 for item in intro |
49 do | 49 do |
50 rm -f $webdir/$item.html | 50 rm -f $webdir/$item.html |
51 if [ -r $booke/$item.md ]; then | 51 if [ -r $bookedir/$item.md ]; then |
52 pandoc --from=markdown --to=html --output=$webdir/$item.html $booke/$item.md | 52 pandoc --from=markdown --to=html --output=$webdir/$item.html $bookedir/$item.md |
53 else | 53 else |
54 touch $webdir/$item.html | 54 touch $webdir/$item.html |
55 fi | 55 fi |
56 done | 56 done |
57 | |
58 # Copy in any htaccess. | |
59 if [ -r $masterbookedir/htaccess ]; then | |
60 cp $masterbookedir/htaccess $webdir/.htaccess | |
61 fi | |
57 | 62 |
58 # Copy in the book PDFs. Like the graphics, Midi etc. these are assumed | 63 # Copy in the book PDFs. Like the graphics, Midi etc. these are assumed |
59 # to be already generated. | 64 # to be already generated. |
60 cp $1-*.pdf $webdir | 65 cp $1-*.pdf $webdir |
61 | 66 |