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
|
2010-01-01 23:45:11 +00:00
|
|
|
# Copyright (c) 2005-2010 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS)
|
2007-10-23 21:52:11 +00:00
|
|
|
# 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/>.
|
|
|
|
#
|
2008-12-07 06:03:24 +00:00
|
|
|
# optional $1 = optional directory containing build tree or git 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
|
|
|
|
2008-12-07 06:03:24 +00:00
|
|
|
# identify a git revision similar to svn based on number of commits, if a git
|
|
|
|
# working copy. the last svn commit was rev 1274, so we'll pick up from there
|
|
|
|
if test "$1" != "" && test -d "$1/.git"; then
|
|
|
|
revision=`git log --since=2008-12-06 --pretty=oneline | wc -l | awk '{print $1 + 1274}'`;
|
|
|
|
elif test -d ".git"; then
|
|
|
|
revision=`git log --since=2008-12-06 --pretty=oneline | wc -l | awk '{print $1 + 1274}'`;
|
2007-08-28 20:37:42 +00:00
|
|
|
else
|
|
|
|
revision="NONE"; fi
|
2006-11-21 07:31:42 +00:00
|
|
|
|
2008-12-07 06:03:24 +00:00
|
|
|
# generate configure.ac with substituted git revision
|
2007-08-28 20:37:42 +00:00
|
|
|
sed -e "s/@REVISION@/${revision}/g" < "configure.ac.in" > "configure.ac"
|
2006-03-25 14:28:40 +00:00
|
|
|
|
2009-05-10 17:52:03 +00:00
|
|
|
touch README # in case it doesn't exist
|
2008-07-07 20:09:37 +00:00
|
|
|
echo Running $ACLOCAL -I m4 ... && $ACLOCAL -I 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
|