Commit b93d8512 authored by Heinz N. Gies's avatar Heinz N. Gies

Add fifo.mk task

parent 8633f35f
......@@ -3,7 +3,7 @@ REBAR = $(shell pwd)/rebar3
.PHONY: deps rel stagedevrel package version all tree
all: version_header compile
all: version_header compile fifo.mk
include fifo.mk
......
REBAR = $(shell pwd)/rebar3
PKG_VSN = $(shell head -n1 rel/pkg/Makefile | sed 's/[^0-9.p]//g')
REBAR_VSN = $(shell grep 'release' rebar.config | sed 's/[^0-9.p]//g')
REBAR_VSN = $(shell erl -noshell -eval '{ok, F} = file:consult("rebar.config"), [{release, {_, Vsn}, _}] = [O || {relx, [O | _]} <- F], io:format("~s", [Vsn]), init:stop().')
VARS_VSN = $(shell grep 'bugsnag_app_version' rel/vars.config | sed -e 's/.*,//' -e 's/[^0-9.p]//g' -e 's/[.]$$//')
APP_VSN = $(shell grep vsn apps/$(APP)/src/$(APP).app.src | sed 's/[^0-9.p]//g')
......@@ -43,6 +43,10 @@ tree: $(REBAR)
tree-diff: tree
git diff test -- tree
fifo.mk: _build/default/lib/fifo_utils/priv/fifo.mk
cp _build/default/lib/fifo_utils/priv/fifo.mk .
###
### Docs
###
......@@ -53,7 +57,9 @@ docs:
### Version
###
vsn:
build-vsn:
@echo "$(REBAR_VSN)"
vsn:
@echo "## rel/pkg/Makefile"
@echo "$(PKG_VSN)"
@echo "## apps/$(APP)/src/$(APP).app.src"
......@@ -64,7 +70,7 @@ vsn:
@echo "$(VARS_VSN)"
test-vsn:
@echo "Testing against package version: $(PKG_VSN)"
@[ "$(PKG_VSN)" == "$(APP_VSN)" ] && echo " - App version ok: $(APP_VSN)" || (echo "App version out of date" && false)
@[ "$(PKG_VSN)" == "$(REBAR_VSN)" ] && echo " - Rebar version ok: $(REBAR_VSN)" || (echo "Rebar version out of date" && false)
@[ "$(PKG_VSN)" == "$(VARS_VSN)" ] && echo " - Vars version ok: $(VARS_VSN)" || (echo "Vars version out of date" && false)
@echo "Testing against package version: $(REBAR_VSN)"
@[ "$(REBAR_VSN)" == "$(APP_VSN)" ] && echo " - App version ok: $(APP_VSN)" || (echo "App version out of date" && false)
@[ "$(REBAR_VSN)" == "$(PKG_VSN)" ] && echo " - Package version ok: $(PKG_VSN)" || (echo "Package version out of date" && false)
@[ "$(REBAR_VSN)" == "$(VARS_VSN)" ] && echo " - Vars version ok: $(VARS_VSN)" || (echo "Vars version out of date" && false)
......@@ -17,7 +17,7 @@
{<<"eper">>,{pkg,<<"eper">>,<<"0.94.0">>},0},
{<<"epgsql">>,{pkg,<<"epgsql">>,<<"3.3.0">>},3},
{<<"erlware_commons">>,{pkg,<<"erlware_commons">>,<<"1.0.0">>},0},
{<<"fifo_utils">>,{pkg,<<"fifo_utils">>,<<"0.1.32">>},0},
{<<"fifo_utils">>,{pkg,<<"fifo_utils">>,<<"0.1.33">>},0},
{<<"goldrush">>,{pkg,<<"goldrush">>,<<"0.1.9">>},1},
{<<"hdr_histogram">>,{pkg,<<"hdr_histogram">>,<<"0.2.0">>},1},
{<<"jsone">>,{pkg,<<"jsone">>,<<"1.2.6">>},0},
......@@ -53,7 +53,7 @@
{<<"eper">>, <<"F5FB2DAA0DF8878748E1C598428EDA942A173E5121FF35C1D632129B84593A3A">>},
{<<"epgsql">>, <<"974A578340E52012CBAB820CE756E7ED1DF1BAF0110C59A6753D8337A2CF9454">>},
{<<"erlware_commons">>, <<"087467DE5833C0BB5B3CCDD387F9E9C1FB816A75B7A709629BF24B5ED3246C51">>},
{<<"fifo_utils">>, <<"40F448C92C28DFF56F40ED89EEA38128170DCFE3B0C515151C35B44373E00B36">>},
{<<"fifo_utils">>, <<"C24CB9776DE4A58284027E735E4F8EA162588DB65D51146E323B4B7B91F01130">>},
{<<"goldrush">>, <<"F06E5D5F1277DA5C413E84D5A2924174182FB108DABB39D5EC548B27424CD106">>},
{<<"hdr_histogram">>, <<"95A7EC3C8FA354E4CFBFC8F4168EE8F07BD3965CA22B9C45B2A2C9D13B03DCEC">>},
{<<"jsone">>, <<"3EED1BC3F34D5727A011AB84A20230F4BDD8BB2B9C07C3AD0DCF412410231A74">>},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment