shithub: puzzles

Download patch

ref: f9eca22196124bff73a55c9cadc223690d55a462
parent: cca76ce6dc20a6da6697f6d9549cc0fb86e8b487
author: Simon Tatham <anakin@pobox.com>
date: Thu Jan 6 13:37:05 EST 2011

Introduce a mechanism in Buildscr for optionally building some of the
(more finished) puzzles in 'unfinished', as Java applets only. (The
rationale being: puzzles in 'unfinished' can be played locally by
people who go to the extra effort of downloading and building the
source, but to play them in Java is particularly inconvenient unless I
build the Java version myself. I just won't link it from the front
page.)

[originally from svn r9073]

--- a/Buildscr
+++ b/Buildscr
@@ -101,6 +101,10 @@
 # _parent_ directory, so be careful when we deliver it.)
 in puzzles do ./makedist.sh $(revision)
 
+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
+
 # Build the Java applets. This requires .bob.conf on the master
 # build machine to have defined the variable NESTEDVM pointing at
 # the top-level directory of an installation of the NestedVM