29075e49cd4cb47675fcc8a49374ff8b5356f141
[sgt/agedu] / Buildscr
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 in agedu do rm -rf autom4te.cache
11
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
23 in . do cp -R agedu agedu-r$(revision)
24 in . do tar chzvf agedu-r$(revision).tar.gz agedu-r$(revision)
25
26 in agedu do halibut --html=manpage.html agedu.but
27 in agedu do halibut --html=tree.html tree.but
28
29 deliver agedu-r$(revision).tar.gz $@
30 deliver agedu/manpage.html $@
31 deliver agedu/tree.html $@
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
39 deliver agedu/winscan.exe ageduscan.exe