[yum-cvs] yum-utils: Makefile

Tim Lauridsen timlau at linux.duke.edu
Wed Jul 25 09:32:27 UTC 2007


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

commit 1598ae9d28ee125b45a75e7f983127f2f5ad8e6e
Author: Tim Lauridsen <tla at rasmil.dk>
Date:   Wed Jul 25 11:31:38 2007 +0200

    changed 'archive' Makefile target to work with git-archive (yum-utils-1.0.x)

diff --git a/Makefile b/Makefile
index 060bc1b..0c8fccc 100644
--- a/Makefile
+++ b/Makefile
@@ -20,14 +20,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