blob: 5be104eb1d9faff14bdbf82f2c8185f470e9e4aa [file] [log] [blame]
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001#! /bin/sh
2# a quick hack script to generate necessary files from
3# auto* tools.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004#
5# WARNING: if you run this you will change the versions
6# of the tools which are used and, maybe, required!
Glenn Randers-Pehrsona2218a42010-09-14 16:06:08 -05007
8# You can define your own replacements in your environment.
9# $AUTOCONF, $AUTOMAKE, $AUTOHEADER, $AUTOPOINT, $ACLOCAL and $LIBTOOLIZE
10
Glenn Randers-Pehrsona3137512010-08-18 20:25:36 -050011touch Makefile.am configure.ac
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012{
Glenn Randers-Pehrsona2218a42010-09-14 16:06:08 -050013 LT=${LIBTOOLIZE-libtoolize}
14 echo "running $LT" >&2
15 $LT --force --copy --automake
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060016} && {
Glenn Randers-Pehrsona2218a42010-09-14 16:06:08 -050017 AL=${ACLOCAL-aclocal}
18 echo "running $AL" >&2
19 $AL
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060020} && {
Glenn Randers-Pehrsona2218a42010-09-14 16:06:08 -050021 AH=${AUTOHEADER-autoheader}
22 echo "running $AH [ignore the warnings]" >&2
23 $AH
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060024} && {
Glenn Randers-Pehrsona2218a42010-09-14 16:06:08 -050025 AM=${AUTOMAKE-automake}
26 echo "running $AM" >&2
27 $AM --force-missing --foreign -a -c
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060028} && {
Glenn Randers-Pehrsona2218a42010-09-14 16:06:08 -050029 AC=${AUTOCONF-autoconf}
30 echo "running $AC" >&2
31 $AC
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060032} &&
Glenn Randers-Pehrsona3137512010-08-18 20:25:36 -050033 echo "autogen complete" >&2 ||
34 echo "ERROR: autogen.sh failed, autogen is incomplete" >&2