6209008b |
1 | # -*- sh -*- |
2 | # |
3 | # bob script to build the agedu tarball. |
4 | |
5 | module agedu |
6 | |
7 | in agedu do sed '/AC_INIT/s/6.66/r$(revision)/' configure.ac > tmp.ac |
8 | in agedu do mv tmp.ac configure.ac |
ee2c6904 |
9 | in agedu do ./mkauto.sh |
6209008b |
10 | |
ee2c6904 |
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. |
16 | delegate - |
17 | in agedu do ./configure |
18 | in agedu do make doc |
19 | return agedu/*.1 |
20 | enddelegate |
21 | |
6209008b |
22 | in . do cp -R agedu agedu-r$(revision) |
c13f47a6 |
23 | in . do tar chzvf agedu-r$(revision).tar.gz agedu-r$(revision) |
6209008b |
24 | |
e0ef9550 |
25 | in agedu do halibut --html=manpage.html agedu.but |
c1065ef6 |
26 | in agedu do halibut --html=tree.html tree.but |
e0ef9550 |
27 | |
6209008b |
28 | deliver agedu-r$(revision).tar.gz $@ |
e0ef9550 |
29 | deliver agedu/manpage.html $@ |
c1065ef6 |
30 | deliver agedu/tree.html $@ |
2e665410 |
31 | |
32 | delegate windows |
33 | # FIXME: Cygwin alternative? |
34 | in agedu do cmd /c vcvars32 \& cl winscan.c |
35 | return agedu/winscan.exe |
36 | enddelegate |
37 | |
052f73ac |
38 | deliver agedu/winscan.exe ageduscan.exe |