aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Ruppert <idl0r@gentoo.org>2012-02-14 04:31:36 +0100
committerChristian Ruppert <idl0r@gentoo.org>2012-02-14 04:31:36 +0100
commit3f5ac641c8d4e2a9fe69a1ab64948233d19feb06 (patch)
treec1b6a804390a44c7b8781d5e6ac77988c89d15ce
parentAdd basic help file and README. Fix dist-upload in the Makefile. (diff)
downloadeselect-syntax-master.tar.gz
eselect-syntax-master.tar.bz2
eselect-syntax-master.zip
Make the dist target git compatibleHEADmaster
-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/