aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2021-05-12 11:58:14 +0200
committerLoïc Hoguin <[email protected]>2021-05-12 11:58:14 +0200
commit4bec14fbf04f4c38b22dcebbbac5ba7e60ff3860 (patch)
tree1b3b650b9f6d219ab5df5a66a803705c6618408d /Makefile
parenta692f44567034dacf5efcaa24a24183788594eb7 (diff)
downloadranch-1.8.x.tar.gz
ranch-1.8.x.tar.bz2
ranch-1.8.x.zip
Add hex metadata and prepare_tag target1.8.x
Also update Erlang.mk.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile33
1 files changed, 33 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 82da742..dcbb443 100644
--- a/Makefile
+++ b/Makefile
@@ -29,6 +29,20 @@ AUTO_CI_HIPE ?= OTP-LATEST
# AUTO_CI_ERLLVM ?= OTP-LATEST
AUTO_CI_WINDOWS ?= OTP-21+
+# Hex configuration.
+
+define HEX_TARBALL_EXTRA_METADATA
+#{
+ licenses => [<<"ISC">>],
+ links => #{
+ <<"User guide">> => <<"https://ninenines.eu/docs/en/ranch/1.8/guide/">>,
+ <<"Function reference">> => <<"https://ninenines.eu/docs/en/ranch/1.8/manual/">>,
+ <<"GitHub">> => <<"https://github.com/ninenines/ranch">>,
+ <<"Sponsor">> => <<"https://github.com/sponsors/essen">>
+ }
+}
+endef
+
# Standard targets.
include erlang.mk
@@ -50,3 +64,22 @@ DIALYZER_OPTS += --src -r test
ci-setup:: $(DEPS_DIR)/ct_helper
$(gen_verbose) cp ~/.kerl/builds/$(CI_OTP_RELEASE)/otp_src_git/lib/ssl/test/erl_make_certs.erl deps/ct_helper/src/ || true
$(gen_verbose) $(MAKE) -C $(DEPS_DIR)/ct_helper clean app
+
+# Prepare for the release.
+
+prepare_tag:
+ $(verbose) $(warning Hex metadata: $(HEX_TARBALL_EXTRA_METADATA))
+ $(verbose) echo
+ $(verbose) echo -n "Most recent tag: "
+ $(verbose) git tag --sort taggerdate | tail -n1
+ $(verbose) git verify-tag `git tag --sort taggerdate | tail -n1`
+ $(verbose) echo -n "MAKEFILE: "
+ $(verbose) grep -m1 PROJECT_VERSION Makefile
+ $(verbose) echo -n "APP: "
+ $(verbose) grep -m1 vsn ebin/$(PROJECT).app | sed 's/ //g'
+ $(verbose) echo -n "GUIDE: "
+ $(verbose) grep -h dep_$(PROJECT)_commit doc/src/guide/*.asciidoc || true
+ $(verbose) echo
+ $(verbose) echo "Dependencies:"
+ $(verbose) grep ^DEPS Makefile || echo "DEPS ="
+ $(verbose) grep ^dep_ Makefile || true