1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-05 21:07:52 +00:00
conky/autogen.sh
Roman Bogorodskiy 96bf5e927e Avoid bash-isms.
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@860 7f574dfc-610e-0410-a909-a81674777703
2007-05-05 17:13:35 +00:00

28 lines
797 B
Bash
Executable File

#!/bin/sh
# $Id$
# autogen.sh
# 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}
if [ "$1" = "clean" ]; then
/bin/rm -f configure.ac
exit 0
fi
# substitute 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"
echo Running $ACLOCAL ... && $ACLOCAL
echo Running $LIBTOOLIZE --force --copy ... && $LIBTOOLIZE --force --copy
echo Running $AUTOHEADER ... && $AUTOHEADER
echo Running $AUTOMAKE --add-missing --copy --gnu ... && $AUTOMAKE --add-missing --copy --gnu
echo Running $AUTOCONF ... && $AUTOCONF