Add a "const" to the argument of dupstr() so that GCC doesn't complain when
[sgt/halibut] / Buildscr
CommitLineData
897cd14d 1# -*- sh -*-
2# Build script to build Halibut releases.
3
4ifnexist halibut/charset checkout charset halibut/charset
5
6set Ver
7ifneq "$(RELEASE)" "" set Ver $(RELEASE)
8ifneq "$(SNAPSHOT)" "" set Ver $(SNAPSHOT)
9
10set Rel
11ifneq "$(RELEASE)" "" set Rel RELEASE=$(RELEASE)
12ifneq "$(SNAPSHOT)" "" set Rel RELEASE=$(SNAPSHOT)
13
14set Basename halibut
15ifneq "$(ver)" "" set Basename halibut-$(Ver)
16
17# Make the source archive.
18in halibut do ./release.sh $(Basename) $(Ver)
19
20# Build a local binary of Halibut in order to build the docs. Make
21# sure to tag it with the supplied version number, so that the
22# release docs announce themselves as having been built with the
23# release Halibut (e.g. PDF's Producer property).
24in halibut do make $(Rel)
25
26# And now build the docs.
27in halibut/doc do make
28
29deliver halibut/*.tar.gz $@
30deliver halibut/doc/halibut.pdf $@
31deliver halibut/doc/halibut.txt $@
32deliver halibut/doc/*.html $@
33
34# FIXME: it'd be nice to add a Windows delegation here so we can
35# ship a prebuilt Halibut executable. However, that requires a
36# Windows makefile.