0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 12:20:24 +00:00

Add Hex metadata

This commit is contained in:
Loïc Hoguin 2021-05-12 12:04:03 +02:00
parent 04ca4c5d31
commit 2a08250499
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764

View file

@ -34,6 +34,20 @@ AUTO_CI_HIPE ?= OTP-LATEST
# AUTO_CI_ERLLVM ?= OTP-LATEST # AUTO_CI_ERLLVM ?= OTP-LATEST
AUTO_CI_WINDOWS ?= OTP-LATEST-22+ AUTO_CI_WINDOWS ?= OTP-LATEST-22+
# Hex configuration.
define HEX_TARBALL_EXTRA_METADATA
#{
licenses => [<<"ISC">>],
links => #{
<<"User guide">> => <<"https://ninenines.eu/docs/en/cowboy/2.9/guide/">>,
<<"Function reference">> => <<"https://ninenines.eu/docs/en/cowboy/2.9/manual/">>,
<<"GitHub">> => <<"https://github.com/ninenines/cowboy">>,
<<"Sponsor">> => <<"https://github.com/sponsors/essen">>
}
}
endef
# Standard targets. # Standard targets.
include erlang.mk include erlang.mk
@ -84,9 +98,11 @@ ci-setup:: clean deps test-deps
# Prepare for the release. # Prepare for the release.
prepare_tag: prepare_tag:
$(verbose) $(warning Hex metadata: $(HEX_TARBALL_EXTRA_METADATA))
$(verbose) echo
$(verbose) echo -n "Most recent tag: " $(verbose) echo -n "Most recent tag: "
$(verbose) git tag | tail -n1 $(verbose) git tag --sort taggerdate | tail -n1
$(verbose) git verify-tag `git tag | tail -n1` $(verbose) git verify-tag `git tag --sort taggerdate | tail -n1`
$(verbose) echo -n "MAKEFILE: " $(verbose) echo -n "MAKEFILE: "
$(verbose) grep -m1 PROJECT_VERSION Makefile $(verbose) grep -m1 PROJECT_VERSION Makefile
$(verbose) echo -n "APP: " $(verbose) echo -n "APP: "