chiark / gitweb /
Improve connectedness-error highlighting in Range.
[sgt-puzzles.git] / Buildscr
index a1b1a294481e3297eb9e7d16ce752c601fb2ff60..4d86ba62a2a39bd884e83a04df8a5243c246d81f 100644 (file)
--- a/Buildscr
+++ b/Buildscr
@@ -3,27 +3,34 @@
 
 module puzzles
 
+# Start by substituting the right version number in configure.ac.
+in puzzles do perl -i~ -pe 's/rNNNN/r$(revision)/' configure.ac
+in puzzles do rm configure.ac~
+
 # First build some local binaries, to run the icon build.
-in puzzles do perl mkfiles.pl
+in puzzles do perl mkfiles.pl -U
 in puzzles do make
 
 # Now build the screenshots and icons.
 in puzzles/icons do xvfb-run -s "-screen 0 1024x768x24" make web winicons gtkicons
 
+# Destroy the local binaries and autoconf detritus, mostly to avoid
+# wasting network bandwidth by transferring them to the delegate
+# servers.
+in puzzles do make distclean
+
 # 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
+# Rebuild the configure script.
+in puzzles do ./mkauto.sh
 
 # Build the OS X .dmg archive.
-# 2012-04-03: commented out because my Mac is dead.
-#delegate osx
-#  in puzzles do make -f Makefile.osx clean
-#  in puzzles do make -f Makefile.osx release VER=-DREVISION=$(revision)
-#  return puzzles/Puzzles.dmg
-#enddelegate
+delegate osx
+  in puzzles do make -f Makefile.osx clean
+  in puzzles do make -f Makefile.osx release VER=-DREVISION=$(revision)
+  return puzzles/Puzzles.dmg
+enddelegate
 
 # Build the Windows binaries and installer, and the CHM file.
 in puzzles do make -f Makefile.doc clean
@@ -135,7 +142,7 @@ deliver puzzles/winbin/*.exe $@
 deliver puzzles/.htaccess $@
 deliver puzzles/doc/*.html doc/$@
 deliver puzzles/devel/*.html devel/$@
-#deliver puzzles/Puzzles.dmg $@ # 2012-04-03 commented out, see above
+deliver puzzles/Puzzles.dmg $@
 deliver puzzles/puzzles.chm $@
 deliver puzzles/puzzles.hlp $@
 deliver puzzles/puzzles.cnt $@