diff options
author | P. J. McDermott <pj@pehjota.net> | 2014-08-26 14:46:52 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2014-08-26 14:46:52 (EDT) |
commit | 50861885ea55d6cc0bf8b1fcef8c6166ad2caf1a (patch) | |
tree | 6b9499484cd0d9e81bda9197a291173a3d81a945 | |
parent | 15898b3b376a639f7e21388d2aa18fa89c9dc7c5 (diff) |
Makefile.am: New "release" target
-rw-r--r-- | Makefile.am | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index 54c3e87..80b76a2 100644 --- a/Makefile.am +++ b/Makefile.am @@ -61,7 +61,8 @@ sources = \ tests/parse_control.common.sh EXTRA_DIST = \ autogen.sh \ - $(sources) + $(sources) \ + scripts/announce-release.sh SUFFIXES = .sh .sm .1in .1 .ms @@ -160,6 +161,24 @@ dist-hook: mv '$(distdir)/ChangeLog~' '$(distdir)/ChangeLog'; \ fi +release: + sed "s/^Released: ????-??-??\$$/Released: $$(date '+%Y-%m-%d')/" \ + '$(srcdir)/NEWS' >'$(srcdir)/NEWS~' + mv '$(srcdir)/NEWS~' '$(srcdir)/NEWS' + $(MAKE) distcheck + set -e; \ + export GIT_DIR='$(srcdir)/.git'; \ + export GIT_WORK_TREE='$(srcdir)'; \ + git commit -m 'NEWS: Release $(PACKAGE) $(VERSION)' -- NEWS; \ + git tag '$(PACKAGE)/$(VERSION)' HEAD; \ + git push --tags origin master:master + md5sum $(DIST_ARCHIVES) >MD5SUMS + sha256sum $(DIST_ARCHIVES) >SHA256SUMS + rsync -az --progress --stats $(DIST_ARCHIVES) MD5SUMS SHA256SUMS \ + files@files.proteanos.com:files/pub/$(PACKAGE)/$(VERSION)/ + '$(srcdir)/scripts/announce-release.sh' \ + $(PACKAGE) $(VERSION) '$(PACKAGE_NAME)' + .sh: $(AM_V_GEN)$(MKDIR_P) "$$(dirname $@)" $(AM_V_at)$(do_subst) $< >$@ |