rpms/systemtap/FC-4 Makefile,1.1,1.2

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Mon Aug 15 01:40:31 UTC 2005


Author: roland

Update of /cvs/dist/rpms/systemtap/FC-4
In directory cvs.devel.redhat.com:/tmp/cvs-serv3184

Modified Files:
	Makefile 
Log Message:
Makefile hacks for importing new version and propagating to other branches.



Index: Makefile
===================================================================
RCS file: /cvs/dist/rpms/systemtap/FC-4/Makefile,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- Makefile	22 Jul 2005 21:23:29 -0000	1.1
+++ Makefile	15 Aug 2005 01:40:28 -0000	1.2
@@ -4,3 +4,50 @@
 SPECFILE = $(firstword $(wildcard *.spec))
 
 include ../common/Makefile.common
+
+tarball = systemtap-$(VERSION).tar.gz
+
+ifeq ($(clobber),t)
+commit-check = :
+else
+commit-check = cvs -Q diff --brief > /dev/null 2>&1
+endif
+
+import-systemtap: $(tarball) ../../elfutils/devel/sources
+	$(commit-check) systemtap.spec
+	cd ../../elfutils/devel && cvs -Q update && $(commit-check)
+	tar -zf $< -xO '*.spec' > systemtap.spec
+	ln -f ../../elfutils/devel/elfutils-*.tar.gz .
+	cp -f ../../elfutils/devel/elfutils-portability.patch .
+	cp -f ../../elfutils/devel/sources sources
+	$(MAKE) upload FILES=$(tarball)
+	touch $@
+
+bundled-devel := 0
+release-devel := 2
+release-RHEL-4 := 0.EL4
+
+propagate-%: import-systemtap
+	cd ../$* && $(commit-check)
+	cp -f sources elfutils-portability.patch ../$*
+	ln -f elfutils-*.tar.gz $(tarball) ../$*
+	USER=`whoami`; \
+	NAME=`getent passwd $$USER | awk -F: '{ printf $$5 }'`; \
+	(date +"* %a %b %e %Y $${NAME} <$${USER}@redhat.com>\
+	     - ${VERSION}-$(release-$*)"; \
+	 echo '- Rebuilt for $*'; echo) > tmp.$$$$; \
+	sed 's/%define bundled_elfutils .*$$/%define\
+		       bundled_elfutils $(firstword $(bundled-$*) 1)/;\
+	     /^Release:/s/: 1/: $(release-$*)/;\
+	     /%changelog/'"r tmp.$$$$" \
+	    systemtap.spec > ../$*/systemtap.spec; \
+	rm -f tmp.$$$$
+	touch $@
+.PRECIOUS: propagate-% tag-%
+
+tag-%: propagate-%
+	cd ../$* && $(MAKE) tag
+	touch $@
+
+build-%: tag-%
+	cd ../$* && $(MAKE) build




More information about the fedora-cvs-commits mailing list