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