summaryrefslogtreecommitdiff
path: root/autogen.sh
blob: 9eefa8b6fbc2b940aa5168bfc065c37b778cb2cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/sh
## ----------------------------------------------------------------------
## autogen.sh : refresh GNU autotools toolchain for libxml2, and
## refreshes doc/examples/index.html
## For use in root directory of the build tree ONLY.
## ----------------------------------------------------------------------
## Requires: autoconf (2.6x), automake1.11, libtool (1.5.x), xsltproc,
## libxml2-utils
## ----------------------------------------------------------------------

## ----------------------------------------------------------------------
set -e

## ----------------------------------------------------------------------
libtoolize --force --copy

## ----------------------------------------------------------------------
aclocal-1.11 -Im4

## ----------------------------------------------------------------------
autoheader

## ----------------------------------------------------------------------
automake-1.11 --foreign --add-missing --force-missing --copy

## ----------------------------------------------------------------------
autoconf

# clean up the junk that was created
rm -rf autom4te.cache

# rebuild doc/examples/index.html
rm -f doc/examples/index.html
make -C doc/examples -f Makefile.am rebuild
#cd doc/examples
#xsltproc examples.xsl examples.xml
#xmllint --valid --noout index.html
#cd ../..

## ----------------------------------------------------------------------
exit 0

## ----------------------------------------------------------------------