mock Makefile,1.8.2.7,1.8.2.8

John Clark Williams (jcwillia) fedora-extras-commits at redhat.com
Mon Jan 8 17:35:31 UTC 2007


Author: jcwillia

Update of /cvs/fedora/mock
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv801

Modified Files:
      Tag: mock-0-6-branch
	Makefile 
Log Message:
changed cp to rsync and added excludes patterns for archive creation


Index: Makefile
===================================================================
RCS file: /cvs/fedora/mock/Makefile,v
retrieving revision 1.8.2.7
retrieving revision 1.8.2.8
diff -u -r1.8.2.7 -r1.8.2.8
--- Makefile	3 Jan 2007 22:19:07 -0000	1.8.2.7
+++ Makefile	8 Jan 2007 17:35:29 -0000	1.8.2.8
@@ -26,10 +26,13 @@
 	mkdir -p $(DESTDIR)/var/lib/mock
 	for d in $(SUBDIRS); do make  DESTDIR=`cd $(DESTDIR); pwd` -C $$d install; [ $$? = 0 ] || exit 1; done
 
+EXCLUDES	:= --exclude='*~' --exclude='*.patch' --exclude='*.save' \
+		   --exclude='*.rpm' --exclude='*.diff' --exclude='*.sh' \
+		   --exclude='*.tar.gz' --exclude='*.tar.bz2' --exclude='*test*'
 archive: clean
 	@rm -rf ${PKGNAME}-*.tar.gz
 	@rm -rf /tmp/${PKGNAME}-$(VERSION) /tmp/${PKGNAME}
-	@dir=$$PWD; cd /tmp; cp -a $$dir ${PKGNAME}
+	@rsync -a $(EXCLUDES) . /tmp/${PKGNAME}
 	@rm -rf /tmp/${PKGNAME}/${PKGNAME}-daily.spec /tmp/${PKGNAME}/build /tmp/${PKGNAME}/dist
 	@mv /tmp/${PKGNAME} /tmp/${PKGNAME}-$(VERSION)
 	@dir=$$PWD; cd /tmp; tar cvz --exclude=CVS --exclude=.cvsignore -f $$dir/${PKGNAME}-$(VERSION).tar.gz ${PKGNAME}-$(VERSION)




More information about the fedora-extras-commits mailing list