summaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2017-07-22 17:58:36 (EDT)
committer P. J. McDermott <pj@pehjota.net>2017-07-22 17:58:36 (EDT)
commit98725484ac7bb96cd2ac6481c8460ceaa06dc4be (patch)
tree97255d75e43cebc41e7b779b109496e35b9c192e /Makefile.am
parent433243d2615ae4998946055289228438ec5cab4b (diff)
Makefile.am: New "release" targetfeature/use-autoconf-automake-shpp-and-shld
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am23
1 files changed, 23 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 9d5df1c..c49df54 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -100,6 +100,29 @@ 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
+ set -e; \
+ for f in $(DIST_ARCHIVES); do \
+ gpg --armor --sign $${f}; \
+ done
+ ssh files@files.proteanos.com mkdir -p files/pub/$(PACKAGE)
+ 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.sho:
$(AM_V_GEN)$(MKDIR_P) "$$(dirname $@)"
$(AM_V_at)$(SH) -n $<