X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=Buildscr;h=1b99d5dd04cf518fce76ef73e109d201c67bd3d2;hb=3234912f921916a1b8da164fd61dc75579358577;hp=947102d5678ae8df88c7f452fb5e03512d1c527b;hpb=2ebbdbf2a567c73d75af4f0e04f4f42bfe6d3530;p=sgt-puzzles.git diff --git a/Buildscr b/Buildscr index 947102d..1b99d5d 100644 --- a/Buildscr +++ b/Buildscr @@ -14,6 +14,16 @@ in puzzles do rm configure.ac~ in puzzles do perl -e 'print "\n\\versionid Simon Tatham'\''s Portable Puzzle Collection, version $$ARGV[0]\n"' $(Version) >> puzzles.but in puzzles do perl -e 'print "\n\\versionid Simon Tatham'\''s Portable Puzzle Collection, version $$ARGV[0]\n"' $(Version) >> devel.but +# Write out a version.h that contains the real version number. +in puzzles do echo '/* Generated by automated build script */' > version.h +in puzzles do echo '$#define VER "Version $(Version)"' >> version.h + +# And do the same substitution in the OS X metadata. (This is a bit +# icky in principle because it presumes that my version numbers don't +# need XML escaping, but frankly, if they ever do then I should fix +# them!) +in puzzles do perl -i -pe 's/Unidentified build/$(Version)/' osx-info.plist + # First build some local binaries, to run the icon build. in puzzles do perl mkfiles.pl -U in puzzles do make @@ -116,6 +126,9 @@ in puzzles do zip -j puzzles.zip winbin/*.exe puzzles.chm puzzles.hlp puzzles.cn # _parent_ directory, so be careful when we deliver it.) in puzzles do ./makedist.sh $(Version) +# Build the autogenerated pieces of the main web page. +in puzzles do perl webpage.pl + ifneq "$(JAVA_UNFINISHED)" "" in puzzles do perl -i~ -pe 'print "!srcdir unfinished/\n" if /!srcdir icons/' Recipe ifneq "$(JAVA_UNFINISHED)" "" in puzzles do ln -s unfinished/group.R . ifneq "$(JAVA_UNFINISHED)" "" in puzzles do perl mkfiles.pl @@ -159,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)