forked from CryHavoc/dottes
Enable a tune book to have a htaccess file, copied to .htaccess in web.
This commit is contained in:
parent
8c5a32c304
commit
1155d9d257
|
@ -48,13 +48,18 @@ sed -e "s/@BUILD@/$buildno/" -e "s/@SUBTITLE@/$subtitle/" \
|
||||||
for item in intro
|
for item in intro
|
||||||
do
|
do
|
||||||
rm -f $webdir/$item.html
|
rm -f $webdir/$item.html
|
||||||
if [ -r $booke/$item.md ]; then
|
if [ -r $bookedir/$item.md ]; then
|
||||||
pandoc --from=markdown --to=html --output=$webdir/$item.html $booke/$item.md
|
pandoc --from=markdown --to=html --output=$webdir/$item.html $bookedir/$item.md
|
||||||
else
|
else
|
||||||
touch $webdir/$item.html
|
touch $webdir/$item.html
|
||||||
fi
|
fi
|
||||||
done
|
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
|
# Copy in the book PDFs. Like the graphics, Midi etc. these are assumed
|
||||||
# to be already generated.
|
# to be already generated.
|
||||||
cp $1-*.pdf $webdir
|
cp $1-*.pdf $webdir
|
||||||
|
|
Loading…
Reference in New Issue