1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-12-25 04:06:03 +00:00

added autogen.sh clean to remove configure.ac

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@789 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
Philip Kovacs 2006-11-21 20:47:05 +00:00
parent 5ce6fdf4b8
commit d294df837d

View File

@ -2,17 +2,21 @@
# $Id$
# autogen.sh
# optional $1 = full path to svn local working repository
# optional $1 = full path to svn working copy or "clean"
AUTOCONF=${AUTOCONF:-autoconf}
AUTOMAKE=${AUTOMAKE:-automake}
ACLOCAL=${ACLOCAL:-aclocal}
AUTOHEADER=${AUTOHEADER:-autoheader}
LIBTOOLIZE=${LIBTOOLIZE:-libtoolize}
WORKINGREPO=${1:-.}
if [ "$1" == "clean" ]; then
/bin/rm -f configure.ac
exit 0
fi
# substitute svn revision
revision=`LC_ALL=C svn info ${WORKINGREPO} | awk '/^Revision: / {printf "%05d\n", $2}'`
revision=`LC_ALL=C svn info $1 | awk '/^Revision: / {printf "%05d\n", $2}'`
sed -e "s/@REVISION@/${revision}/g" \
< "configure.ac.in" > "configure.ac"