diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2018-12-24 23:57:21 (EST) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2018-12-24 23:57:21 (EST) |
commit | 5283f78e0c8d04d102f83604467814b126c5e4b4 (patch) | |
tree | 139ba47ec27bde42a0a65e5db92e4f8e7c639478 | |
parent | 3e67f0492b7bfd7e86778fe159028da154f1364d (diff) |
Makefile.am: New "release" target
-rw-r--r-- | Makefile.am | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index 158f609..16691c1 100644 --- a/Makefile.am +++ b/Makefile.am @@ -180,6 +180,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)' + lib/libopkbuild.$(SHSOEXT).$(libopkbuild_shsoversion): \ $(libopkbuild_dependencies) @rm -f lib/libopkbuild.$(SHSOEXT).$(libopkbuild_shsoversion) |