Suggestion from James Beal: support a '--title' option to override the
[sgt/agedu] / Buildscr
CommitLineData
6209008b 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
ee2c6904 9in agedu do ./mkauto.sh
c13f47a6 10in agedu do rm -rf autom4te.cache
6209008b 11
ee2c6904 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
6209008b 23in . do cp -R agedu agedu-r$(revision)
c13f47a6 24in . do tar chzvf agedu-r$(revision).tar.gz agedu-r$(revision)
6209008b 25
e0ef9550 26in agedu do halibut --html=manpage.html agedu.but
c1065ef6 27in agedu do halibut --html=tree.html tree.but
e0ef9550 28
6209008b 29deliver agedu-r$(revision).tar.gz $@
e0ef9550 30deliver agedu/manpage.html $@
c1065ef6 31deliver agedu/tree.html $@
2e665410 32
33delegate windows
34 # FIXME: Cygwin alternative?
35 in agedu do cmd /c vcvars32 \& cl winscan.c
36 return agedu/winscan.exe
37enddelegate
38
052f73ac 39deliver agedu/winscan.exe ageduscan.exe