diff options
author | P. J. McDermott <pj@pehjota.net> | 2019-03-22 13:11:08 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2019-03-22 13:11:08 (EDT) |
commit | ed61c1493abc5c5a8bcd605170f1e989353ae34c (patch) | |
tree | 72e2049d5ab07e9ccdba011d0f1bbc56402d615f | |
parent | 24da710db066e46a5cbff0a15ce8a5af1d35eb82 (diff) |
Makefile.am: Add "release" target
-rw-r--r-- | Makefile.am | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index 43c7192..fdd1522 100644 --- a/Makefile.am +++ b/Makefile.am @@ -191,6 +191,32 @@ test: printf '\n'; \ [ $${t_failed} -eq 0 ] +release: + sed "s/^Released: ????-??-??\$$/Released: $$(date '+%Y-%m-%d')/" \ + '$(srcdir)/NEWS' >'$(srcdir)/NEWS~' + mv '$(srcdir)/NEWS~' '$(srcdir)/NEWS' + $(MAKE) dist # Not 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; \ + sigs=''; \ + for f in $(DIST_ARCHIVES); do \ + gpg --armor --sign $${f}; \ + sigs="$${sigs} $${f}.asc"; \ + done; \ + ssh files@files.proteanos.com mkdir -p files/pub/$(PACKAGE); \ + rsync -az --progress --stats $(DIST_ARCHIVES) ${sigs} \ + 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) $< >$@ |