aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2019-04-05 10:38:46 +0200
committerLoïc Hoguin <[email protected]>2019-04-05 10:53:59 +0200
commit7b86c1fd883fbdcecbd8db6ae792a683d10a4b31 (patch)
treecd56608385309e1431b7e5e62b242329a3472140
parentad005b7d96441826a6fad1f6473ce69d11f53ca4 (diff)
downloadcowlib-7b86c1fd883fbdcecbd8db6ae792a683d10a4b31.tar.gz
cowlib-7b86c1fd883fbdcecbd8db6ae792a683d10a4b31.tar.bz2
cowlib-7b86c1fd883fbdcecbd8db6ae792a683d10a4b31.zip
Add a prepare_tag target to help with releasing
-rw-r--r--Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index b2c2d9e..b828a11 100644
--- a/Makefile
+++ b/Makefile
@@ -74,3 +74,18 @@ endif
perfs: test-build
$(gen_verbose) erl -noshell -pa ebin -eval 'horse:app_perf($(PROJECT)), erlang:halt().'
+
+# Prepare for the release.
+
+prepare_tag:
+ $(verbose) echo -n "Most recent tag: "
+ $(verbose) git tag | tail -n1
+ $(verbose) git verify-tag `git tag | 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
+ $(verbose) echo "Dependencies:"
+ $(verbose) grep ^DEPS Makefile || echo "DEPS ="
+ $(verbose) grep ^dep_ Makefile || true