2005-07-24 23:08:51 +00:00
|
|
|
#!/bin/sh
|
2005-08-05 03:49:10 +00:00
|
|
|
# $Id$
|
2005-07-24 23:08:51 +00:00
|
|
|
|
2006-11-21 07:31:42 +00:00
|
|
|
# autogen.sh
|
2007-08-28 20:37:42 +00:00
|
|
|
#
|
|
|
|
# optional $1 = optional directory containing build tree or svn working copy
|
2006-11-21 07:31:42 +00:00
|
|
|
|
2007-08-30 06:25:19 +00:00
|
|
|
AUTOCONF=${AUTOCONF:-autoconf}
|
|
|
|
AUTOMAKE=${AUTOMAKE:-automake}
|
|
|
|
ACLOCAL=${ACLOCAL:-aclocal}
|
|
|
|
AUTOHEADER=${AUTOHEADER:-autoheader}
|
|
|
|
LIBTOOLIZE=${LIBTOOLIZE:-libtoolize}
|
2006-11-21 20:47:05 +00:00
|
|
|
|
2007-08-28 20:37:42 +00:00
|
|
|
# identify svn revision, if an svn working copy
|
|
|
|
if test "$1" != "" && test -d "$1/.svn"; then
|
|
|
|
revision=`LC_ALL=C svn info $1 | awk '/^Revision: / {printf "%05d\n", $2}'`;
|
|
|
|
elif test -d ".svn"; then
|
|
|
|
revision=`LC_ALL=C svn info | awk '/^Revision: / {printf "%05d\n", $2}'`;
|
|
|
|
else
|
|
|
|
revision="NONE"; fi
|
2006-11-21 07:31:42 +00:00
|
|
|
|
2007-08-28 20:37:42 +00:00
|
|
|
# generate configure.ac with substituted svn revision
|
|
|
|
sed -e "s/@REVISION@/${revision}/g" < "configure.ac.in" > "configure.ac"
|
2006-03-25 14:28:40 +00:00
|
|
|
|
2007-08-28 20:27:45 +00:00
|
|
|
echo Running $ACLOCAL -I m4 ... && $ACLOCAL -I m4
|
2007-02-25 23:35:53 +00:00
|
|
|
echo Running $LIBTOOLIZE --force --copy ... && $LIBTOOLIZE --force --copy
|
2006-11-21 07:31:42 +00:00
|
|
|
echo Running $AUTOHEADER ... && $AUTOHEADER
|
2007-02-25 23:35:53 +00:00
|
|
|
echo Running $AUTOMAKE --add-missing --copy --gnu ... && $AUTOMAKE --add-missing --copy --gnu
|
2006-11-21 07:31:42 +00:00
|
|
|
echo Running $AUTOCONF ... && $AUTOCONF
|