Suggestion from James Beal: support a '--title' option to override the
[sgt/agedu] / Buildscr
... / ...
CommitLineData
1# -*- sh -*-
2#
3# bob script to build the agedu tarball.
4
5module agedu
6
7in agedu do sed '/AC_INIT/s/6.66/r$(revision)/' configure.ac > tmp.ac
8in agedu do mv tmp.ac configure.ac
9in agedu do ./mkauto.sh
10in agedu do rm -rf autom4te.cache
11
12# Build the man page. This also tests the automake setup to ensure
13# configure actually works; but we use a self-delegation (i.e. do all
14# of this in a throwaway copy of the build directory) to avoid
15# accidentally shipping any outputs of configure. Instead we return
16# only the actual man page from the delegation environment.
17delegate -
18 in agedu do ./configure
19 in agedu do make doc
20 return agedu/*.1
21enddelegate
22
23in . do cp -R agedu agedu-r$(revision)
24in . do tar chzvf agedu-r$(revision).tar.gz agedu-r$(revision)
25
26in agedu do halibut --html=manpage.html agedu.but
27in agedu do halibut --html=tree.html tree.but
28
29deliver agedu-r$(revision).tar.gz $@
30deliver agedu/manpage.html $@
31deliver agedu/tree.html $@
32
33delegate windows
34 # FIXME: Cygwin alternative?
35 in agedu do cmd /c vcvars32 \& cl winscan.c
36 return agedu/winscan.exe
37enddelegate
38
39deliver agedu/winscan.exe ageduscan.exe