mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-26 04:17:33 +00:00
15f3623b21
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@931 7f574dfc-610e-0410-a909-a81674777703
30 lines
1016 B
Bash
Executable File
30 lines
1016 B
Bash
Executable File
#!/bin/sh
|
|
# $Id$
|
|
|
|
# autogen.sh
|
|
#
|
|
# optional $1 = optional directory containing build tree or svn working copy
|
|
|
|
AUTOCONF=${AUTOCONF:-autoconf}
|
|
AUTOMAKE=${AUTOMAKE:-automake}
|
|
ACLOCAL=${ACLOCAL:-aclocal}
|
|
AUTOHEADER=${AUTOHEADER:-autoheader}
|
|
LIBTOOLIZE=${LIBTOOLIZE:-libtoolize}
|
|
|
|
# identify svn revision, if an svn working copy
|
|
if test "$1" != "" && test -d "$1/.svn"; then
|
|
revision=`LC_ALL=C svn info $1 | awk '/^Revision: / {printf "%05d\n", $2}'`;
|
|
elif test -d ".svn"; then
|
|
revision=`LC_ALL=C svn info | awk '/^Revision: / {printf "%05d\n", $2}'`;
|
|
else
|
|
revision="NONE"; fi
|
|
|
|
# generate configure.ac with substituted svn revision
|
|
sed -e "s/@REVISION@/${revision}/g" < "configure.ac.in" > "configure.ac"
|
|
|
|
echo Running $ACLOCAL -I m4 ... && $ACLOCAL -I m4
|
|
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
|