aboutsummaryrefslogtreecommitdiffstats
path: root/mk/Maintainer.mk
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2011-06-01 09:18:46 +0200
committerGerd Hoffmann <kraxel@redhat.com>2011-06-01 09:18:46 +0200
commit7d7f952a0ad378da5a8f384867d1e4b5709e54d5 (patch)
treee97f0326956ce6282a91e72df5fcba42f7082b31 /mk/Maintainer.mk
parentb615a1555ea2f1e751bee5a042d4433245330cf0 (diff)
downloadfbida-7d7f952a0ad378da5a8f384867d1e4b5709e54d5.tar.gz
makefile update
Diffstat (limited to 'mk/Maintainer.mk')
-rw-r--r--mk/Maintainer.mk19
1 files changed, 9 insertions, 10 deletions
diff --git a/mk/Maintainer.mk b/mk/Maintainer.mk
index 23446ae..fedc5cc 100644
--- a/mk/Maintainer.mk
+++ b/mk/Maintainer.mk
@@ -12,17 +12,16 @@ sync:: distclean
chmod 444 $(srcdir)/INSTALL $(srcdir)/mk/*.mk
-repository = $(shell cat CVS/Repository)
+repository := $(shell basename $(PWD))
release-dir ?= $(HOME)/projects/Releases
-release-pub ?= goldbach@me.in-berlin.de:dl.bytesex.org/releases/$(repository)
-tarball = $(release-dir)/$(repository)-$(VERSION).tar.gz
+release-pub ?= bigendian.kraxel.org:/public/vhosts/www.kraxel.org/releases/$(repository)
+tarball = $(release-dir)/$(repository)-$(VERSION).tar
.PHONY: release
release:
- cvs tag $(RELTAG)
- cvs export -r $(RELTAG) -d "$(repository)-$(VERSION)" "$(repository)"
- find "$(repository)-$(VERSION)" -name .cvsignore -exec rm -fv "{}" ";"
- tar -c -z -f "$(tarball)" "$(repository)-$(VERSION)"
- rm -rf "$(repository)-$(VERSION)"
- scp $(tarball) $(release-pub)
-
+ git tag -m "release $(VERSION)" "$(VERSION)"
+ git push --tags
+ git archive --format=tar --prefix=$(repository)-$(VERSION)/ \
+ -o $(tarball) $(VERSION)
+ gzip $(tarball)
+ scp $(tarball).gz $(release-pub)