From: fabbione@sourceware.org <fabbione@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] Cluster Project branch, STABLE2, updated. cluster-2.02.00-1-g3aa78ef
Date: 7 Mar 2008 03:53:22 -0000 [thread overview]
Message-ID: <20080307035322.20522.qmail@sourceware.org> (raw)
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=3aa78efa2839cc3c00c8f70a3e2bb4c09ddc463c
The branch, STABLE2 has been updated
via 3aa78efa2839cc3c00c8f70a3e2bb4c09ddc463c (commit)
from 1f0985dfe6d4d79a539abbe4a681c10296837d91 (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 3aa78efa2839cc3c00c8f70a3e2bb4c09ddc463c
Author: Fabio M. Di Nitto <fabbione@fabbione.net>
Date: Fri Mar 7 04:45:05 2008 +0100
[BUILD] Fix configure script to handle releases
Add concept of release_micro value used only for RELEASE_VERSION.
Attention packagers: release_micro is a mandatory value.
Add support for encoding release versions in the tarball by adding
a file at release time:
cluster/make$ cat official_release_version
VERSION "2.2.10"
will automatically set the release to 2.2.10 with library sonames to 2.2
NOTE: manual values will always override whatever is set by default.
Signed-off-by: Fabio M. Di Nitto <fabbione@fabbione.net>
-----------------------------------------------------------------------
Summary of changes:
configure | 36 ++++++++++++++++++++++++++++++------
1 files changed, 30 insertions(+), 6 deletions(-)
diff --git a/configure b/configure
index 01901f8..fd7825e 100755
--- a/configure
+++ b/configure
@@ -82,6 +82,7 @@ my %options = (
enable_xen => \$enable_xen,
release_major => \$release_major,
release_minor => \$release_minor,
+ release_micro => \$release_micro,
without_ccs => \$without_ccs,
without_cman => \$without_cman,
without_dlm => \$without_dlm,
@@ -144,6 +145,7 @@ my $err = &GetOptions (\%options,
'conffile=s',
'release_major=s',
'release_minor=s',
+ 'release_micro=s',
'fence_agents=s',
'enable_xen',
'without_ccs',
@@ -531,6 +533,9 @@ if (defined($release_major) && not length $release_major) {
if (defined($release_minor) && not length $release_minor) {
$release_minor="";
}
+if (defined($release_micro) && not length $release_micro) {
+ $release_micro="";
+}
@args = "find fence/agents -mindepth 2 -maxdepth 2 -name Makefile -printf '%h'";
open (IFILE, "@args |");
@@ -619,16 +624,35 @@ while (<IFILE>) {
close IFILE;
-if ((not defined($release_major)) || (not defined($release_minor))) {
- $release_major = DEVEL;
- $release_minor = `date +%s`;
- chomp $release_minor;
+if ((not defined($release_major)) || (not defined($release_minor)) || (not defined($release_micro))) {
+ if ( -f 'make/official_release_version' ) {
+ my $current_version = 0;
+ open OFFICIAL_VERSION, '<', "make/official_release_version";
+ while (<OFFICIAL_VERSION>) {
+ if ($_ =~ /VERSION/) {
+ $current_version = $_;
+ last;
+ }
+ }
+ close OFFICIAL_VERSION;
+ $current_version =~ s/.*"(.*)"\n/$1/;
+ my @release_version = split /\./, $current_version;
+ $release_major = $release_version[0];
+ $release_minor = $release_version[1];
+ $release_micro = $release_version[2];
+ } else {
+ $release_major = DEVEL;
+ $release_minor = `date +%s`;
+ chomp $release_minor;
+ $release_micro = 0;
+ }
}
print OFILE "RELEASE_MAJOR = $release_major\n";
print OFILE "RELEASE_MINOR = $release_minor\n";
-print OFILE "RELEASE_VERSION = $release_major.$release_minor\n";
-print OFILE "CFLAGS += -DRELEASE_VERSION=\\\"$release_major.$release_minor\\\"\n";
+print OFILE "RELEASE_MICRO = $release_micro\n";
+print OFILE "RELEASE_VERSION = $release_major.$release_minor.$release_micro\n";
+print OFILE "CFLAGS += -DRELEASE_VERSION=\\\"$release_major.$release_minor.$release_micro\\\"\n";
close OFILE;
print "Completed Makefile configuration\n\n";
hooks/post-receive
--
Cluster Project
reply other threads:[~2008-03-07 3:53 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080307035322.20522.qmail@sourceware.org \
--to=fabbione@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).