diff options
author | kraxel <kraxel> | 2007-08-15 10:47:12 +0000 |
---|---|---|
committer | kraxel <kraxel> | 2007-08-15 10:47:12 +0000 |
commit | dbe2e2d981739d80417288a57872d2e24c5acf1d (patch) | |
tree | e195277ccc949fc028ea546f1c3370d96e083aaf | |
parent | 3f41379a3c5399a51712283d22e53ae4f8e543b2 (diff) | |
download | xenwatch-dbe2e2d981739d80417288a57872d2e24c5acf1d.tar.gz |
makefile sync
-rw-r--r-- | mk/Maintainer.mk | 11 | ||||
-rw-r--r-- | mk/Variables.mk | 1 |
2 files changed, 12 insertions, 0 deletions
diff --git a/mk/Maintainer.mk b/mk/Maintainer.mk index 62f02d6..d0961c7 100644 --- a/mk/Maintainer.mk +++ b/mk/Maintainer.mk @@ -2,6 +2,8 @@ ######################################################################## make-sync-dir = $(HOME)/projects/gnu-makefiles +repository = $(shell cat CVS/Repository) +release-dir = $(HOME)/projects/Releases .PHONY: sync sync:: distclean @@ -10,3 +12,12 @@ sync:: distclean cp -v $(make-sync-dir)/INSTALL $(srcdir)/. cp -v $(make-sync-dir)/*.mk $(srcdir)/mk chmod 444 $(srcdir)/INSTALL $(srcdir)/mk/*.mk + +release: + cvs tag $(RELTAG) + cvs export -r $(RELTAG) -d "$(repository)-$(VERSION)" "$(repository)" + find "$(repository)-$(VERSION)" -name .cvsignore -exec rm -fv "{}" ";" + tar -c -z -f "$(release-dir)/$(repository)-$(VERSION).tar.gz" \ + "$(repository)-$(VERSION)" + rm -rf "$(repository)-$(VERSION)" + diff --git a/mk/Variables.mk b/mk/Variables.mk index 69486f3..d1c7c5f 100644 --- a/mk/Variables.mk +++ b/mk/Variables.mk @@ -17,6 +17,7 @@ ifneq ($(wildcard $(srcdir)/VERSION),) else VERSION := 42 endif +RELTAG := v$(subst .,_,$(VERSION)) # programs CC ?= gcc |