[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [PATCH] Stop puting git metadata in the pyblock tar.bz2.



Looks good,

Regards,

Hans


Joel Granados Moreno wrote:
---
 Makefile |   14 ++++----------
 1 files changed, 4 insertions(+), 10 deletions(-)

diff --git a/Makefile b/Makefile
index 4d92015..f8b7e31 100644
--- a/Makefile
+++ b/Makefile
@@ -44,17 +44,11 @@ tag:
 	@git tag -a -m "Tag as pyblock-$(VERSION)-$(RELEASE)" pyblock-$(VERSION)-$(RELEASE)
 	@echo "Tagged as pyblock-$(VERSION)-$(RELEASE)"
-pyblock-$(VERSION).tar.bz2 : - @rm -rvf /tmp/$@
-	@rm -vf $(PWD)/../pyblock-$(VERSION)
-	ln -sf $(PWD) $(PWD)/../pyblock-$(VERSION)
-	tar cjhf /tmp/$@ --exclude playpen $(PWD)/../pyblock-$(VERSION)
-	mv /tmp/$@ $(PWD)/
+archive-no-tag:
+	@git archive --format=tar --prefix=pyblock-$(VERSION)/ pyblock-$(VERSION)-$(RELEASE) > pyblock-$(VERSION).tar
+	@bzip2 -f pyblock-$(VERSION).tar
-.PHONY : pyblock-$(VERSION).tar.bz2
-archive : clean pyblock-$(VERSION).tar.bz2
-
-archive_tagged : tag archive
+archive: clean tag archive-no-tag
flat_install: all
 	@install -v -m 0755 -d ${DESTDIR}/


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]