2005-07-24 23:08:51 +00:00
|
|
|
#!/bin/sh
|
2007-10-23 21:52:11 +00:00
|
|
|
#
|
|
|
|
# Conky, a system monitor, based on torsmo
|
|
|
|
#
|
|
|
|
# Any original torsmo code is licensed under the BSD license
|
|
|
|
#
|
|
|
|
# All code written since the fork of torsmo is licensed under the GPL
|
|
|
|
#
|
|
|
|
# Please see COPYING for details
|
|
|
|
#
|
|
|
|
# Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
|
|
|
|
# Copyright (c) 2005-2007 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS)
|
|
|
|
# All rights reserved.
|
|
|
|
#
|
|
|
|
# This program is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
#
|
2005-08-05 03:49:10 +00:00
|
|
|
# $Id$
|
2007-08-28 20:37:42 +00:00
|
|
|
#
|
|
|
|
# optional $1 = optional directory containing build tree or svn working copy
|
2006-11-21 07:31:42 +00:00
|
|
|
|
2007-08-30 06:25:19 +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
|
|
|
|
2007-08-28 20:37:42 +00:00
|
|
|
# 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
|
2008-02-20 20:30:45 +00:00
|
|
|
revision=`LC_ALL=C svn info | awk '/^Revision: / {printf "%05d\n", $2}'`;
|
2007-08-28 20:37:42 +00:00
|
|
|
else
|
|
|
|
revision="NONE"; fi
|
2006-11-21 07:31:42 +00:00
|
|
|
|
2007-08-28 20:37:42 +00:00
|
|
|
# generate configure.ac with substituted svn revision
|
|
|
|
sed -e "s/@REVISION@/${revision}/g" < "configure.ac.in" > "configure.ac"
|
2006-03-25 14:28:40 +00:00
|
|
|
|
2008-07-01 01:26:02 +00:00
|
|
|
echo Running $ACLOCAL -I m4 -I libgnu/m4 ... && $ACLOCAL -I m4 -I libgnu/m4
|
2007-02-25 23:35:53 +00:00
|
|
|
echo Running $LIBTOOLIZE --force --copy ... && $LIBTOOLIZE --force --copy
|
2006-11-21 07:31:42 +00:00
|
|
|
echo Running $AUTOHEADER ... && $AUTOHEADER
|
2007-02-25 23:35:53 +00:00
|
|
|
echo Running $AUTOMAKE --add-missing --copy --gnu ... && $AUTOMAKE --add-missing --copy --gnu
|
2006-11-21 07:31:42 +00:00
|
|
|
echo Running $AUTOCONF ... && $AUTOCONF
|