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
|
2006-11-21 20:47:05 +00:00
|
|
|
# optional $1 = full path to svn working copy or "clean"
|
2006-11-21 07:31:42 +00:00
|
|
|
|
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 20:47:05 +00:00
|
|
|
|
|
|
|
if [ "$1" == "clean" ]; then
|
|
|
|
/bin/rm -f configure.ac
|
|
|
|
exit 0
|
|
|
|
fi
|
2006-11-21 07:31:42 +00:00
|
|
|
|
|
|
|
# substitute svn revision
|
2006-11-21 20:47:05 +00:00
|
|
|
revision=`LC_ALL=C svn info $1 | awk '/^Revision: / {printf "%05d\n", $2}'`
|
2006-11-21 07:31:42 +00:00
|
|
|
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
|