summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2007-02-04 11:13:43 +0000
committerSimon Tatham <anakin@pobox.com>2007-02-04 11:13:43 +0000
commit310feffa5a81b1daf35642f3ff8eda136910e83c (patch)
tree2a1df7a0960ba258e945af5d3ad9f8a942aed361
parent5a65b4af1c730b3730b031acf30de699178741c9 (diff)
downloadhalibut-310feffa5a81b1daf35642f3ff8eda136910e83c.zip
halibut-310feffa5a81b1daf35642f3ff8eda136910e83c.tar.gz
halibut-310feffa5a81b1daf35642f3ff8eda136910e83c.tar.bz2
halibut-310feffa5a81b1daf35642f3ff8eda136910e83c.tar.xz
Build script for building Halibut using bob.
[originally from svn r7204]
-rw-r--r--Buildscr36
1 files changed, 36 insertions, 0 deletions
diff --git a/Buildscr b/Buildscr
new file mode 100644
index 0000000..bc9fdc8
--- /dev/null
+++ b/Buildscr
@@ -0,0 +1,36 @@
+# -*- sh -*-
+# Build script to build Halibut releases.
+
+ifnexist halibut/charset checkout charset halibut/charset
+
+set Ver
+ifneq "$(RELEASE)" "" set Ver $(RELEASE)
+ifneq "$(SNAPSHOT)" "" set Ver $(SNAPSHOT)
+
+set Rel
+ifneq "$(RELEASE)" "" set Rel RELEASE=$(RELEASE)
+ifneq "$(SNAPSHOT)" "" set Rel RELEASE=$(SNAPSHOT)
+
+set Basename halibut
+ifneq "$(ver)" "" set Basename halibut-$(Ver)
+
+# Make the source archive.
+in halibut do ./release.sh $(Basename) $(Ver)
+
+# Build a local binary of Halibut in order to build the docs. Make
+# sure to tag it with the supplied version number, so that the
+# release docs announce themselves as having been built with the
+# release Halibut (e.g. PDF's Producer property).
+in halibut do make $(Rel)
+
+# And now build the docs.
+in halibut/doc do make
+
+deliver halibut/*.tar.gz $@
+deliver halibut/doc/halibut.pdf $@
+deliver halibut/doc/halibut.txt $@
+deliver halibut/doc/*.html $@
+
+# FIXME: it'd be nice to add a Windows delegation here so we can
+# ship a prebuilt Halibut executable. However, that requires a
+# Windows makefile.