Chris Walker reports that if you give a trailing slash on the pathname
[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
10
11# Build the man page. This also tests the automake setup to ensure
12# configure actually works; but we use a self-delegation (i.e. do all
13# of this in a throwaway copy of the build directory) to avoid
14# accidentally shipping any outputs of configure. Instead we return
15# only the actual man page from the delegation environment.
16delegate -
17 in agedu do ./configure
18 in agedu do make doc
19 return agedu/*.1
20enddelegate
21
22in . do cp -R agedu agedu-r$(revision)
23in . do tar chzvf agedu-r$(revision).tar.gz agedu-r$(revision)
24
25in agedu do halibut --html=manpage.html agedu.but
26in agedu do halibut --html=tree.html tree.but
27
28deliver agedu-r$(revision).tar.gz $@
29deliver agedu/manpage.html $@
30deliver agedu/tree.html $@
31
32delegate windows
33 # FIXME: Cygwin alternative?
34 in agedu do cmd /c vcvars32 \& cl winscan.c
35 return agedu/winscan.exe
36enddelegate
37
38deliver agedu/winscan.exe ageduscan.exe