897cd14d |
1 | # -*- sh -*- |
2 | # Build script to build Halibut releases. |
3 | |
4 | ifnexist halibut/charset checkout charset halibut/charset |
5 | |
6 | set Ver |
7 | ifneq "$(RELEASE)" "" set Ver $(RELEASE) |
8 | ifneq "$(SNAPSHOT)" "" set Ver $(SNAPSHOT) |
9 | |
10 | set Rel |
11 | ifneq "$(RELEASE)" "" set Rel RELEASE=$(RELEASE) |
12 | ifneq "$(SNAPSHOT)" "" set Rel RELEASE=$(SNAPSHOT) |
13 | |
14 | set Basename halibut |
15 | ifneq "$(ver)" "" set Basename halibut-$(Ver) |
16 | |
17 | # Make the source archive. |
18 | in 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). |
24 | in halibut do make $(Rel) |
25 | |
26 | # And now build the docs. |
27 | in halibut/doc do make |
28 | |
29 | deliver halibut/*.tar.gz $@ |
30 | deliver halibut/doc/halibut.pdf $@ |
31 | deliver halibut/doc/halibut.txt $@ |
32 | deliver 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. |