2004-12-03 00:14:51 +00:00
|
|
|
#! /bin/sh
|
|
|
|
# a quick hack script to generate necessary files from
|
|
|
|
# auto* tools.
|
2006-03-02 13:23:18 +00:00
|
|
|
#
|
|
|
|
# WARNING: if you run this you will change the versions
|
|
|
|
# of the tools which are used and, maybe, required!
|
2010-09-14 21:06:08 +00:00
|
|
|
|
|
|
|
# You can define your own replacements in your environment.
|
|
|
|
# $AUTOCONF, $AUTOMAKE, $AUTOHEADER, $AUTOPOINT, $ACLOCAL and $LIBTOOLIZE
|
|
|
|
|
2010-08-19 01:25:36 +00:00
|
|
|
touch Makefile.am configure.ac
|
2006-03-02 13:23:18 +00:00
|
|
|
{
|
2010-09-14 21:06:08 +00:00
|
|
|
LT=${LIBTOOLIZE-libtoolize}
|
|
|
|
echo "running $LT" >&2
|
|
|
|
$LT --force --copy --automake
|
2006-03-02 13:23:18 +00:00
|
|
|
} && {
|
2010-09-14 21:06:08 +00:00
|
|
|
AL=${ACLOCAL-aclocal}
|
|
|
|
echo "running $AL" >&2
|
|
|
|
$AL
|
2006-03-02 13:23:18 +00:00
|
|
|
} && {
|
2010-09-14 21:06:08 +00:00
|
|
|
AH=${AUTOHEADER-autoheader}
|
|
|
|
echo "running $AH [ignore the warnings]" >&2
|
|
|
|
$AH
|
2006-03-02 13:23:18 +00:00
|
|
|
} && {
|
2010-09-14 21:06:08 +00:00
|
|
|
AM=${AUTOMAKE-automake}
|
|
|
|
echo "running $AM" >&2
|
|
|
|
$AM --force-missing --foreign -a -c
|
2006-03-02 13:23:18 +00:00
|
|
|
} && {
|
2010-09-14 21:06:08 +00:00
|
|
|
AC=${AUTOCONF-autoconf}
|
|
|
|
echo "running $AC" >&2
|
|
|
|
$AC
|
2006-03-02 13:23:18 +00:00
|
|
|
} &&
|
2010-08-19 01:25:36 +00:00
|
|
|
echo "autogen complete" >&2 ||
|
|
|
|
echo "ERROR: autogen.sh failed, autogen is incomplete" >&2
|