| 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 |
| 9 | in 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. |
| 16 | delegate - |
| 17 | in agedu do ./configure |
| 18 | in agedu do make doc |
| 19 | return agedu/*.1 |
| 20 | enddelegate |
| 21 | |
| 22 | in . do cp -R agedu agedu-r$(revision) |
| 23 | in . do tar chzvf agedu-r$(revision).tar.gz agedu-r$(revision) |
| 24 | |
| 25 | in agedu do halibut --html=manpage.html agedu.but |
| 26 | in agedu do halibut --html=tree.html tree.but |
| 27 | |
| 28 | deliver agedu-r$(revision).tar.gz $@ |
| 29 | deliver agedu/manpage.html $@ |
| 30 | deliver agedu/tree.html $@ |
| 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 | |
| 38 | deliver agedu/winscan.exe ageduscan.exe |