From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12099 invoked by alias); 3 Jul 2008 10:20:40 -0000 Received: (qmail 12069 invoked by uid 9702); 3 Jul 2008 10:20:39 -0000 Date: Thu, 03 Jul 2008 10:20:00 -0000 Message-ID: <20080703102039.12054.qmail@sourceware.org> From: fabbione@sourceware.org To: cluster-cvs@sources.redhat.com, cluster-devel@redhat.com Subject: Cluster Project branch, master, updated. cluster-2.99.05-45-g1aa8fbf X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: 0f7e7fbf0cfd01bec02df4ee2527fb39ed846dc3 X-Git-Newrev: 1aa8fbffa0dd99f36819ad842945186cc42b2cba Mailing-List: contact cluster-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: cluster-cvs-owner@sourceware.org X-SW-Source: 2008-q3/txt/msg00014.txt.bz2 This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Cluster Project". http://sources.redhat.com/git/gitweb.cgi?p=cluster.git;a=commitdiff;h=1aa8fbffa0dd99f36819ad842945186cc42b2cba The branch, master has been updated via 1aa8fbffa0dd99f36819ad842945186cc42b2cba (commit) from 0f7e7fbf0cfd01bec02df4ee2527fb39ed846dc3 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 1aa8fbffa0dd99f36819ad842945186cc42b2cba Author: Fabio M. Di Nitto Date: Thu Jul 3 12:17:45 2008 +0200 [BUILD] Add make oldconfig target configure invokation now creates a .configure.sh script file at the top level of the tree. It contains a shell script to reproduce the last invokation of configure and it allows to add extra config parameters. Note that .configure.sh is updated each time you invoke configure. Add also a make oldconfig that will execute the script. Signed-off-by: Fabio M. Di Nitto ----------------------------------------------------------------------- Summary of changes: .gitignore | 1 + Makefile | 8 ++++++++ configure | 8 ++++++++ 3 files changed, 17 insertions(+), 0 deletions(-) diff --git a/.gitignore b/.gitignore index 6df816f..4a6be48 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ make/defines.mk *.d *.o +.configure.sh diff --git a/Makefile b/Makefile index fe644e5..27f5c5a 100644 --- a/Makefile +++ b/Makefile @@ -45,6 +45,13 @@ gnbd: cman rgmanager: cman dlm bindings: cman +oldconfig: + @if [ -f $(OBJDIR)/.configure.sh ]; then \ + sh $(OBJDIR)/.configure.sh; \ + else \ + echo "No old configure data found"; \ + fi + install: all set -e && for i in ${SUBDIRS}; do ${MAKE} -C $$i $@; done @@ -56,6 +63,7 @@ clean: distclean: clean rm -f make/defines.mk + rm -f .configure.sh rm -f *tar.gz rm -rf build diff --git a/configure b/configure index 4d936af..dd77fa8 100755 --- a/configure +++ b/configure @@ -10,6 +10,8 @@ print "\nConfiguring Makefiles for your system...\n"; # Set a bunch of variables +my @invoke = @ARGV; + my $ret = 0; # this should be only the major version without the extra version @@ -772,4 +774,10 @@ print OFILE "CFLAGS += -DRELEASE_VERSION=\\\"$release_version\\\"\n"; close OFILE; +open OFILE, ">${objdir}/.configure.sh" or die "Can't redirect stdout"; +print OFILE "#!/bin/bash\n"; +print OFILE "$0 @invoke \$@\n"; +print OFILE "exit \$?\n"; +close OFILE; + print "Completed Makefile configuration\n\n"; hooks/post-receive -- Cluster Project