All of lore.kernel.org
 help / color / mirror / Atom feed
From: kupcevic@sourceware.org <kupcevic@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] cluster/fence/agents/apc_snmp Makefile fence_a ...
Date: 6 Mar 2007 15:20:22 -0000	[thread overview]
Message-ID: <20070306152022.27664.qmail@sourceware.org> (raw)

CVSROOT:	/cvs/cluster
Module name:	cluster
Branch: 	RHEL4
Changes by:	kupcevic at sourceware.org	2007-03-06 15:20:21

Modified files:
	fence/agents/apc_snmp: Makefile 
Removed files:
	fence/agents/apc_snmp: fence_apc_snmp 

Log message:
	Fix fence_apc_snmp build process

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/apc_snmp/Makefile.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.1.2.3&r2=1.1.2.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/apc_snmp/fence_apc_snmp.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.1.2.2&r2=NONE

--- cluster/fence/agents/apc_snmp/Attic/Makefile	2006/05/17 15:36:53	1.1.2.3
+++ cluster/fence/agents/apc_snmp/Attic/Makefile	2007/03/06 15:20:21	1.1.2.4
@@ -11,18 +11,33 @@
 ###############################################################################
 
 top_srcdir=../..
-
 UNINSTALL=${top_srcdir}/scripts/uninstall.pl
-
 include ${top_srcdir}/make/defines.mk
 
-RESOURCES=fence_apc_snmp powernet369.mib README_SNMP
 
-all: ${RESOURCES}
+SOURCE= fence_apc_snmp.py
+TARGET= fence_apc_snmp
+
+RESOURCES = powernet369.mib README_SNMP
+
+
+all: $(TARGET) ${RESOURCES}
+
+$(TARGET): $(SOURCE)
+	: > $(TARGET)
+	awk "{print}(\$$1 ~ /#BEGIN_VERSION_GENERATION/){exit 0}" $(SOURCE) >> $(TARGET)
+	echo "FENCE_RELEASE_NAME=\"${RELEASE}\";" >> $(TARGET)
+	${top_srcdir}/scripts/define2var ${top_srcdir}/config/copyright.cf sh REDHAT_COPYRIGHT >> $(TARGET)
+	echo "BUILD_DATE=\"(built `date`)\";" >> $(TARGET)
+	awk -v p=0 "(\$$1 ~ /#END_VERSION_GENERATION/){p = 1} {if(p==1)print}" $(SOURCE) >> $(TARGET)
+	chmod +x $(TARGET)
 
 copytobin: all
-	cp ${RESOURCES} ${top_srcdir}/bin/${TARGET}
+	for v in $(TARGET) ${RESOURCES}; do \
+		cp $${v} ${top_srcdir}/bin/$${v}; \
+	done
+
 
 .PHONY: clean
 clean:
-
+	rm -f $(TARGET)



                 reply	other threads:[~2007-03-06 15:20 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=20070306152022.27664.qmail@sourceware.org \
    --to=kupcevic@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.