Script to autogenerate pieces of the web page.

This should simplify the process of adding a new puzzle, by automating
the part where I have to manually edit index.html separately from the
main build step.
This commit is contained in:
Simon Tatham
2015-01-13 20:04:18 +00:00
parent e3a8e64812
commit 7cf7e37d65
3 changed files with 80 additions and 12 deletions

View File

@ -146,6 +146,9 @@ delegate emscripten
return puzzles/js/*.js
enddelegate
# Build the autogenerated pieces of the main web page.
in puzzles do perl webpage.pl
# Set up .htaccess containing a redirect for the archive filename.
in puzzles do echo "AddType application/octet-stream .chm" > .htaccess
in puzzles do echo "AddType application/octet-stream .hlp" >> .htaccess
@ -169,6 +172,8 @@ deliver puzzles/*.jar java/$@
deliver puzzles/js/*.js js/$@
deliver puzzles/html/*.html html/$@
deliver puzzles/html/*.pl html/$@
deliver puzzles/wwwspans.html $@
deliver puzzles/wwwlinks.html $@
# deliver puzzles/puzzles.armv4.cab $@ # (not built at the moment)