From 7cf7e37d65d59bc87977deb7e810f21b4b106797 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Tue, 13 Jan 2015 20:04:18 +0000 Subject: 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. --- Buildscr | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Buildscr') 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) -- cgit v1.1