Git init
[external/libxml2.git] / autogen.sh
1 #!/bin/sh
2 ## ----------------------------------------------------------------------
3 ## autogen.sh : refresh GNU autotools toolchain for libxml2, and
4 ## refreshes doc/examples/index.html
5 ## For use in root directory of the build tree ONLY.
6 ## ----------------------------------------------------------------------
7 ## Requires: autoconf (2.6x), automake1.11, libtool (1.5.x), xsltproc,
8 ## libxml2-utils
9 ## ----------------------------------------------------------------------
10
11 ## ----------------------------------------------------------------------
12 set -e
13
14 ## ----------------------------------------------------------------------
15 libtoolize --force --copy
16
17 ## ----------------------------------------------------------------------
18 aclocal-1.11 -Im4
19
20 ## ----------------------------------------------------------------------
21 autoheader
22
23 ## ----------------------------------------------------------------------
24 automake-1.11 --foreign --add-missing --force-missing --copy
25
26 ## ----------------------------------------------------------------------
27 autoconf
28
29 # clean up the junk that was created
30 rm -rf autom4te.cache
31
32 # rebuild doc/examples/index.html
33 rm -f doc/examples/index.html
34 make -C doc/examples -f Makefile.am rebuild
35 #cd doc/examples
36 #xsltproc examples.xsl examples.xml
37 #xmllint --valid --noout index.html
38 #cd ../..
39
40 ## ----------------------------------------------------------------------
41 exit 0
42
43 ## ----------------------------------------------------------------------