public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* cluster: STABLE3 - copyright: allow non-redhat-copyright in fence agents
@ 2009-02-27 12:03 Fabio M. Di Nitto
0 siblings, 0 replies; only message in thread
From: Fabio M. Di Nitto @ 2009-02-27 12:03 UTC (permalink / raw)
To: cluster-cvs-relay
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=60556137ca47e611601f7777d5f743eceb8b3b52
Commit: 60556137ca47e611601f7777d5f743eceb8b3b52
Parent: dc39945e601fe9a8b76ecc7f8879f459a3b3790b
Author: Fabio M. Di Nitto <fdinitto@redhat.com>
AuthorDate: Fri Feb 27 13:00:23 2009 +0100
Committer: Fabio M. Di Nitto <fdinitto@redhat.com>
CommitterDate: Fri Feb 27 13:03:02 2009 +0100
copyright: allow non-redhat-copyright in fence agents
The build system was simply stupid. Fix that to allow
proper copyright attribution.
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
---
scripts/fenceparse | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/scripts/fenceparse b/scripts/fenceparse
index 8b00698..c34cb82 100644
--- a/scripts/fenceparse
+++ b/scripts/fenceparse
@@ -28,8 +28,11 @@ esac
awk "{print}(\$1 ~ /#BEGIN_VERSION_GENERATION/){exit 0}" $realinfile
echo ${start}RELEASE_VERSION=\"${release}\"${end}
-echo ${start}REDHAT_COPYRIGHT=${definedata}${end}
echo ${start}BUILD_DATE=\"\(built $(date)\)\"${end}
+if awk -v p=0 "(\$1 ~ /#BEGIN_VERSION_GENERATION/){p = 1} (\$1 ~ /#END_VERSION_GENERATION/){p = 0} {if(p==1)print}" $realinfile | \
+ grep -q REDHAT_COPYRIGHT; then
+ echo ${start}REDHAT_COPYRIGHT=${definedata}${end}
+fi
awk -v p=0 "(\$1 ~ /#END_VERSION_GENERATION/){p = 1} {if(p==1)print}" $realinfile
exit 0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-02-27 12:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-27 12:03 cluster: STABLE3 - copyright: allow non-redhat-copyright in fence agents Fabio M. Di Nitto
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).