diff options
Diffstat (limited to 'mk/Maintainer.mk')
-rw-r--r-- | mk/Maintainer.mk | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/mk/Maintainer.mk b/mk/Maintainer.mk index 62f02d6..23446ae 100644 --- a/mk/Maintainer.mk +++ b/mk/Maintainer.mk @@ -10,3 +10,19 @@ sync:: distclean cp -v $(make-sync-dir)/INSTALL $(srcdir)/. cp -v $(make-sync-dir)/*.mk $(srcdir)/mk chmod 444 $(srcdir)/INSTALL $(srcdir)/mk/*.mk + + +repository = $(shell cat CVS/Repository) +release-dir ?= $(HOME)/projects/Releases +release-pub ?= goldbach@me.in-berlin.de:dl.bytesex.org/releases/$(repository) +tarball = $(release-dir)/$(repository)-$(VERSION).tar.gz + +.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) + |