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
|
|
|
|
# optional $1 = full path to svn local working repository
|
|
|
|
|
2006-03-25 14:28:40 +00:00
|
|
|
AUTOCONF=${AUTOCONF:-autoconf}
|
|
|
|
AUTOMAKE=${AUTOMAKE:-automake}
|
|
|
|
ACLOCAL=${ACLOCAL:-aclocal}
|
|
|
|
AUTOHEADER=${AUTOHEADER:-autoheader}
|
|
|
|
LIBTOOLIZE=${LIBTOOLIZE:-libtoolize}
|
2006-11-21 07:31:42 +00:00
|
|
|
WORKINGREPO=${1:-.}
|
|
|
|
|
|
|
|
# substitute svn revision
|
|
|
|
revision=`LC_ALL=C svn info ${WORKINGREPO} | awk '/^Revision: / {printf "%05d\n", $2}'`
|
|
|
|
sed -e "s/@REVISION@/${revision}/g" \
|
|
|
|
< "configure.ac.in" > "configure.ac"
|
2006-03-25 14:28:40 +00:00
|
|
|
|
2006-11-21 07:31:42 +00:00
|
|
|
echo Running $ACLOCAL ... && $ACLOCAL
|
|
|
|
echo Running $LIBTOOLIZE --force ... && $LIBTOOLIZE --force
|
|
|
|
echo Running $AUTOHEADER ... && $AUTOHEADER
|
|
|
|
echo Running $AUTOMAKE -a ... && $AUTOMAKE -a
|
|
|
|
echo Running $AUTOCONF ... && $AUTOCONF
|