aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile20
1 files 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/