# -*- sh -*-
# Build script to build Puzzles.
+module puzzles
+
# First build some local binaries, to run the icon build.
in puzzles do perl mkfiles.pl
in puzzles do make
# Now build the screenshots and icons.
in puzzles/icons do xvfb-run make web winicons gtkicons
+# Re-run mkfiles.pl now that it knows the icons are there.
+in puzzles do perl mkfiles.pl
+
# Destroy the local binaries, mostly to avoid wasting network
# bandwidth by transferring them to the delegate servers.
in puzzles do make clean
# Build the OS X .dmg archive.
delegate osx
in puzzles do make -f Makefile.osx clean
- in puzzles do make -f Makefile.osx release
+ in puzzles do make -f Makefile.osx release VER=-DREVISION=$(revision)
return puzzles/Puzzles.dmg
enddelegate
in puzzles do hhc puzzles.hhp; test -f puzzles.chm
# FIXME: Cygwin alternative?
in puzzles do cmd /c 'vcvars32 & nmake -f Makefile.vc clean'
- in puzzles do cmd /c 'vcvars32 & nmake -f Makefile.vc'
+ in puzzles do cmd /c 'vcvars32 & nmake -f Makefile.vc VER=-DREVISION=$(revision)'
return puzzles/puzzles.chm
return puzzles/*.exe
enddelegate
in puzzles do echo "AddType application/octet-stream .chm" > .htaccess
in puzzles do echo "AddType application/octet-stream .hlp" >> .htaccess
in puzzles do echo "AddType application/octet-stream .cnt" >> .htaccess
-in puzzles do set -- puzzles*.tar.gz; echo RedirectMatch temp '(.*/)'puzzles.tar.gz '$$1'"$$1" >> .htaccess
+in . do set -- puzzles*.tar.gz; echo RedirectMatch temp '(.*/)'puzzles.tar.gz '$$1'"$$1" >> puzzles/.htaccess
# Phew, we're done. Deliver everything!
deliver puzzles/icons/*-web.png $@