[yum-cvs] yum-utils: Makefile

Tim Lauridsen timlau at linux.duke.edu
Wed Jul 25 09:34:44 UTC 2007


 Makefile |    9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

commit 3308f368a8b9a859c883b2a24a0815c8cbff70ee
Author: Tim Lauridsen <tla at rasmil.dk>
Date:   Wed Jul 25 11:33:56 2007 +0200

    changed 'archive' Makefile target to work with git-archive (HEAD)

diff --git a/Makefile b/Makefile
index cb9c9da..d738ff9 100644
--- a/Makefile
+++ b/Makefile
@@ -22,14 +22,7 @@ install:
 
 archive:
 	@rm -rf ${PKGNAME}-${VERSION}.tar.gz
-	@rm -rf /tmp/${PKGNAME}-$(VERSION) /tmp/${PKGNAME}
-	@dir=$$PWD; cd /tmp; cp -a $$dir ${PKGNAME}
-	@rm -f /tmp/${PKGNAME}/${PKGNAME}-daily.spec
-	@mv /tmp/${PKGNAME} /tmp/${PKGNAME}-$(VERSION)
-	@rm -rf /tmp/${PKGNAME}-$(VERSION)/.git
-	@rm -rf /tmp/${PKGNAME}-$(VERSION)/tools	
-	@dir=$$PWD; cd /tmp; tar cvzf $$dir/${PKGNAME}-$(VERSION).tar.gz ${PKGNAME}-$(VERSION)
-	@rm -rf /tmp/${PKGNAME}-$(VERSION)	
+	@git-archive --format=tar --prefix=$(PKGNAME)-$(VERSION)/ HEAD | gzip -9v >${PKGNAME}-$(VERSION).tar.gz
 	@echo "The archive is in ${PKGNAME}-$(VERSION).tar.gz"
 	
 srpm: archive



More information about the Yum-cvs-commits mailing list