public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
From: "Fabio M. Di Nitto" <fabbione@fedoraproject.org>
To: cluster-cvs-relay@redhat.com
Subject: cluster: STABLE3 - build: allow easy build of test tarballs for the whole set
Date: Wed, 10 Jun 2009 08:17:00 -0000	[thread overview]
Message-ID: <20090610081709.A458B12035A@lists.fedorahosted.org> (raw)

Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=94df30ca63e49afb1e8aeede65df8a3e5bcd0970
Commit:        94df30ca63e49afb1e8aeede65df8a3e5bcd0970
Parent:        0f6530f6b58cd43cb35745dd1b4e96c16673384c
Author:        Fabio M. Di Nitto <fdinitto@redhat.com>
AuthorDate:    Wed Jun 10 10:16:42 2009 +0200
Committer:     Fabio M. Di Nitto <fdinitto@redhat.com>
CommitterDate: Wed Jun 10 10:16:42 2009 +0200

build: allow easy build of test tarballs for the whole set

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
---
 make/release.mk |   50 ++++++++++++++++++++++++++++----------------------
 1 files changed, 28 insertions(+), 22 deletions(-)

diff --git a/make/release.mk b/make/release.mk
index 67ae422..7a8b9a0 100644
--- a/make/release.mk
+++ b/make/release.mk
@@ -19,59 +19,65 @@ all:
 
 else
 
+ifdef RELEASE
+TEST=""
+else
+TEST="test"
+endif
+
 ## setup stuff
 
 MASTERPROJECT=cluster
+
+ifdef RELEASE
 MASTERPV=$(MASTERPROJECT)-$(VERSION)
-MASTERTGZ=$(MASTERPV).tar.gz
-TESTTGZ=TEST-$(MASTERTGZ)
+else
+MASTERPV=HEAD
+endif
+MASTERTGZ=$(TEST)$(MASTERPROJECT)-$(VERSION).tar.gz
 
 # fence-agents
 FENCEPROJECT=fence-agents
 FENCEPV=$(FENCEPROJECT)-$(VERSION)
-FENCETGZ=$(FENCEPV).tar.gz
+FENCETGZ=$(TEST)$(FENCEPV).tar.gz
 
 # resource-agents
 RASPROJECT=resource-agents
 RASPV=$(RASPROJECT)-$(VERSION)
-RASTGZ=$(RASPV).tar.gz
-
-all: test-tarball
-
-test-tarball:
-	git archive \
-		--format=tar \
-		--prefix=$(MASTERPV)/ \
-		HEAD | \
-		gzip -9 \
-		> ../$(TESTTGZ)
+RASTGZ=$(TEST)$(RASPV).tar.gz
 
-release: tag tarballs
+all: tag tarballs
 
+ifdef RELEASE
 tag:
 	git tag -a -m "$(MASTERPV) release" $(MASTERPV) HEAD
 
+else
+tag:
+
+endif
+
 tarballs: master-tarball fence-agents-tarball resource-agents-tarball
 
 master-tarball:
 	git archive \
 		--format=tar \
-		--prefix=$(MASTERPV)/ \
+		--prefix=$(MASTERPROJECT)-$(VERSION)/ \
 		$(MASTERPV) | \
 		tar xp
 	sed -i -e \
 		's#<CVS>#$(VERSION)#g' \
-		$(MASTERPV)/gfs-kernel/src/gfs/gfs.h
+		$(MASTERPROJECT)-$(VERSION)/gfs-kernel/src/gfs/gfs.h
 	echo "VERSION \"$(VERSION)\"" \
-		>> $(MASTERPV)/make/official_release_version
-	tar cp $(MASTERPV) | \
+		>> $(MASTERPROJECT)-$(VERSION)/make/official_release_version
+	tar cp $(MASTERPROJECT)-$(VERSION) | \
 		gzip -9 \
 		> ../$(MASTERTGZ)
-	rm -rf $(MASTERPV)
+	rm -rf $(MASTERPROJECT)-$(VERSION)
 
 fence-agents-tarball:
 	tar zxpf ../$(MASTERTGZ)
-	mv $(MASTERPV) $(FENCEPV)
+	mv $(MASTERPROJECT)-$(VERSION) $(FENCEPV)
 	cd $(FENCEPV) && \
 		rm -rf bindings cman common config contrib dlm gfs* group rgmanager && \
 		rm -rf fence/fenced fence/fence_node fence/fence_tool fence/include fence/libfence fence/libfenced && \
@@ -84,7 +90,7 @@ fence-agents-tarball:
 
 resource-agents-tarball:
 	tar zxpf ../$(MASTERTGZ)
-	mv $(MASTERPV) $(RASPV)
+	mv $(MASTERPROJECT)-$(VERSION) $(RASPV)
 	cd $(RASPV) && \
 		rm -rf bindings cman common config contrib dlm fence gfs* group && \
 		rm -rf rgmanager/ChangeLog rgmanager/errors.txt rgmanager/event-script.txt \


                 reply	other threads:[~2009-06-10  8:17 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=20090610081709.A458B12035A@lists.fedorahosted.org \
    --to=fabbione@fedoraproject.org \
    --cc=cluster-cvs-relay@redhat.com \
    /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 read-only IMAP folder(s) and NNTP newsgroup(s).