Aloas,
the attached patch adds support for scratch builds to Makefile.common:
scratch-build Request scratch build of "fcgi-2_4_0-2_fc8" for dist-f8
scratch-build-<archs> Request scratch build of "fcgi-2_4_0-2_fc8" for
dist-f8 and archs <archs>
examples: make scratch-build-i386,ppc64
make scratch-build-x86_64
Regards,
Till
Index: Makefile.common
===================================================================
RCS file: /cvs/pkgs/common/Makefile.common,v
retrieving revision 1.72
diff -u -r1.72 Makefile.common
--- Makefile.common 7 Jul 2007 15:11:29 -0000 1.72
+++ Makefile.common 11 Jul 2007 15:16:20 -0000
@@ -154,7 +154,7 @@
PREP_ARCHES = $(addprefix prep-,$(ARCHES))
## list all our bogus targets
-.PHONY :: $(ARCHES) sources uploadsource upload export check build-check plague koji build cvsurl chain-build test-srpm srpm tag force-tag verrel new clean patch prep compile install-short compile-short FORCE local
+.PHONY :: $(ARCHES) sources uploadsource upload export check build-check plague koji build cvsurl chain-build test-srpm srpm tag force-tag verrel new clean patch prep compile install-short compile-short FORCE local scratch-build scratch-build-%
# The TARGETS define is meant for local module targets that should be
# made in addition to the SOURCEFILES whenever needed
@@ -409,6 +409,15 @@
build: plague
endif
+scratch-build: build-check $(COMMON_DIR)/branches
+ @if [ ! -x "$(BUILD_CLIENT)" ]; then echo "Must have koji installed - see http://fedoraproject.org/wiki/BuildSystemClientSetup"; exit 1; fi
+ @$(BUILD_CLIENT) build --scratch $(BUILD_FLAGS) $(TARGET) '$(CVS_URL)'
+
+scratch-build-%: build-check $(COMMON_DIR)/branches
+ @if [ ! -x "$(BUILD_CLIENT)" ]; then echo "Must have koji installed - see http://fedoraproject.org/wiki/BuildSystemClientSetup"; exit 1; fi
+ @$(BUILD_CLIENT) build --scratch --arch-override=$* $(BUILD_FLAGS) $(TARGET) '$(CVS_URL)'
+
+
cvsurl:
@echo '$(CVS_URL)'
@@ -530,6 +539,10 @@
@echo " in a group must build successfully and populate the repository before"
@echo " the next group will begin building."
@echo " If no groups are defined, packages will be built sequentially."
+ @echo " scratch-build Request scratch build of \"$(TAG)\" for $(TARGET)"
+ @echo " scratch-build-<archs> Request scratch build of \"$(TAG)\" for $(TARGET) and archs <archs>"
+ @echo " examples: make scratch-build-i386,ppc64"
+ @echo " make scratch-build-x86_64"
@echo " mockbuild Local test build using mock"
@echo " verrel Echo \"$(NAME)-$(VERSION)-$(RELEASE)\""
@echo " new Diff against last tag"
--
Fedora-buildsys-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/fedora-buildsys-list