common tobuild,NONE,1.1 Makefile.common,1.6,1.7

Jeremy Katz (katzj) fedora-extras-commits at redhat.com
Thu Mar 31 21:02:39 UTC 2005


Author: katzj

Update of /cvs/extras/common
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv14312

Modified Files:
	Makefile.common 
Added Files:
	tobuild 
Log Message:
first pass build: target and build control file.

NOTE: THIS DOES NOT DO ANYTHING YET.  YOU MUST STILL UPDATE THE WIKI
TO GET BUILDS COMPLETED.



--- NEW FILE tobuild ---
# this is the build control file.  the format is
# user	repo	tag	target	status
# 


Index: Makefile.common
===================================================================
RCS file: /cvs/extras/common/Makefile.common,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- Makefile.common	29 Mar 2005 19:36:49 -0000	1.6
+++ Makefile.common	31 Mar 2005 21:02:37 -0000	1.7
@@ -283,6 +283,25 @@
 	@echo "Tagged with: $(TAG)"
 	@echo
 
+define find-common-dir
+for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then echo "$$d"; break ; fi ; done
+endef
+COMMON_DIR := $(shell $(find-common-dir))
+
+define find-user
+if [ `cat CVS/Root |grep -c @` -ne 0 ]; then cat CVS/Root  |cut -d @ -f 1 |  sed 's/:.*://' ; else echo $(USER); fi
+endef
+USER := $(shell $(find-user))
+
+build: 
+	@if [ -z "$(TARGET)" ]; then echo "Must specify a target to build into"; exit 1; fi
+	@(pushd $(COMMON_DIR) >/dev/null ;\
+	cvs -Q update ;\
+	echo -e "$(USER)\t$(CVS_REPOSITORY)\t$(TAG)\t$(TARGET)" >> tobuild ;\
+	cvs commit -m"request build of $(CVS_REPOSITORY) $(TAG) for $(TARGET)" tobuild ;\
+	popd >/dev/null)
+
+
 # "make new | less" to see what has changed since the last tag was assigned
 new:
 	- at cvs diff -u -r$$(cvs log Makefile 2>/dev/null | awk '/^symbolic names:$$/ {getline; sub(/^[ \t]*/, "") ; sub (/:.*$$/, ""); print; exit 0}')




More information about the fedora-extras-commits mailing list