From 3f5ac641c8d4e2a9fe69a1ab64948233d19feb06 Mon Sep 17 00:00:00 2001 From: Christian Ruppert Date: Tue, 14 Feb 2012 04:31:36 +0100 Subject: Make the dist target git compatible --- Makefile | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 7e6addf..4866086 100644 --- a/Makefile +++ b/Makefile @@ -58,12 +58,20 @@ uninstall-files: $(foreach a, $(sort $(files)), \ uninstall-file-%: $(subst _,/,$*) [ ! -f "$(PREFIX)/$(subst _,/,$*)" ] || rm "$(PREFIX)/$(subst _,/,$*)" -dist: - mkdir "$(distpkg)" - $(MAKE) PREFIX="$(distpkg)" install - cp README "$(distpkg)/" - tar jcf "$(distpkg).tar.bz2" "$(distpkg)" - rm -fr "$(distpkg)/" +tag: + git pull + git tag $(distpkg) + @echo + @echo "tag created remember to push it" + @echo + +dist: tag + git archive --prefix=$(distpkg)/ --format=tar -o $(distpkg).tar $(distpkg) + mkdir $(distpkg)/ + git log > $(distpkg)/ChangeLog + tar vfr $(distpkg).tar $(distpkg)/ChangeLog + bzip2 $(distpkg).tar + rm -rf $(distpkg)/ dist-upload: dist scp $(distpkg).tar.bz2 dev.gentoo.org:/space/distfiles-local/ -- cgit v1.2.3-65-gdbad