1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2025-01-13 19:22:58 +00:00

autogen.sh improvements

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@930 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
Philip Kovacs 2007-08-28 20:37:42 +00:00
parent 0959e270ba
commit 1d139aebfb

View File

@ -2,7 +2,8 @@
# $Id$ # $Id$
# autogen.sh # autogen.sh
# optional $1 = full path to svn working copy or "clean" #
# optional $1 = optional directory containing build tree or svn working copy
export AUTOCONF=${AUTOCONF:-autoconf} export AUTOCONF=${AUTOCONF:-autoconf}
export AUTOMAKE=${AUTOMAKE:-automake} export AUTOMAKE=${AUTOMAKE:-automake}
@ -10,15 +11,16 @@ export ACLOCAL=${ACLOCAL:-aclocal}
export AUTOHEADER=${AUTOHEADER:-autoheader} export AUTOHEADER=${AUTOHEADER:-autoheader}
export LIBTOOLIZE=${LIBTOOLIZE:-libtoolize} export LIBTOOLIZE=${LIBTOOLIZE:-libtoolize}
if [ "$1" = "clean" ]; then # identify svn revision, if an svn working copy
/bin/rm -f configure.ac if test "$1" != "" && test -d "$1/.svn"; then
exit 0 revision=`LC_ALL=C svn info $1 | awk '/^Revision: / {printf "%05d\n", $2}'`;
fi elif test -d ".svn"; then
revision=`LC_ALL=C svn info | awk '/^Revision: / {printf "%05d\n", $2}'`;
else
revision="NONE"; fi
# substitute svn revision # generate configure.ac with substituted svn revision
revision=`LC_ALL=C svn info $1 | awk '/^Revision: / {printf "%05d\n", $2}'` sed -e "s/@REVISION@/${revision}/g" < "configure.ac.in" > "configure.ac"
sed -e "s/@REVISION@/${revision}/g" \
< "configure.ac.in" > "configure.ac"
echo Running $ACLOCAL -I m4 ... && $ACLOCAL -I m4 echo Running $ACLOCAL -I m4 ... && $ACLOCAL -I m4
echo Running $LIBTOOLIZE --force --copy ... && $LIBTOOLIZE --force --copy echo Running $LIBTOOLIZE --force --copy ... && $LIBTOOLIZE --force --copy