diff options
Diffstat (limited to 'mk/Maintainer.mk')
-rw-r--r-- | mk/Maintainer.mk | 19 |
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) |