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 |
c13f47a6 |
10 | in 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. |
17 | delegate - |
18 | in agedu do ./configure |
19 | in agedu do make doc |
20 | return agedu/*.1 |
21 | enddelegate |
22 | |
6209008b |
23 | in . do cp -R agedu agedu-r$(revision) |
c13f47a6 |
24 | in . do tar chzvf agedu-r$(revision).tar.gz agedu-r$(revision) |
6209008b |
25 | |
e0ef9550 |
26 | in agedu do halibut --html=manpage.html agedu.but |
c1065ef6 |
27 | in agedu do halibut --html=tree.html tree.but |
e0ef9550 |
28 | |
6209008b |
29 | deliver agedu-r$(revision).tar.gz $@ |
e0ef9550 |
30 | deliver agedu/manpage.html $@ |
c1065ef6 |
31 | deliver agedu/tree.html $@ |
2e665410 |
32 | |
33 | delegate windows |
34 | # FIXME: Cygwin alternative? |
35 | in agedu do cmd /c vcvars32 \& cl winscan.c |
36 | return agedu/winscan.exe |
37 | enddelegate |
38 | |
052f73ac |
39 | deliver agedu/winscan.exe ageduscan.exe |