summaryrefslogtreecommitdiff
path: root/autogen.sh
blob: 1ccb12ea86a811eb9bd0d9b00eaf073ae6be013d (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.5x), automake1.9, libtool (1.5.x), xsltproc,
## libxml2-utils
## ----------------------------------------------------------------------

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

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

## ----------------------------------------------------------------------
aclocal-1.9

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

## ----------------------------------------------------------------------
automake-1.9 --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

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