aboutsummaryrefslogtreecommitdiff
path: root/Buildscr
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2015-01-13 20:04:18 +0000
committerSimon Tatham <anakin@pobox.com>2015-01-13 20:04:18 +0000
commit7cf7e37d65d59bc87977deb7e810f21b4b106797 (patch)
tree75baadeec318c119724205be09a9f1d5672687a3 /Buildscr
parente3a8e64812f2fa783dc5644f04f267a291bc6098 (diff)
downloadpuzzles-7cf7e37d65d59bc87977deb7e810f21b4b106797.zip
puzzles-7cf7e37d65d59bc87977deb7e810f21b4b106797.tar.gz
puzzles-7cf7e37d65d59bc87977deb7e810f21b4b106797.tar.bz2
puzzles-7cf7e37d65d59bc87977deb7e810f21b4b106797.tar.xz
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.
Diffstat (limited to 'Buildscr')
-rw-r--r--Buildscr5
1 files changed, 5 insertions, 0 deletions
diff --git a/Buildscr b/Buildscr
index e3997a0..e63df1b 100644
--- a/Buildscr
+++ b/Buildscr
@@ -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)