Commit 0d45b835 authored by Heinz N. Gies's avatar Heinz N. Gies

Bump

parent 9b7bc08c
APP=dalmatiner_frontend
REBAR = $(shell pwd)/rebar3
.PHONY: deps rel stagedevrel package version all tree
......
{application, dalmatiner_frontend,
[
{description, "Frontend server for dalmatiner DB"},
{vsn, "0.2.0"},
{vsn, "0.2.1"},
{registered, []},
{applications, [
kernel,
......
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')
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')
compile: $(REBAR) .git/hooks/pre-commit
$(REBAR) compile
......@@ -6,7 +10,7 @@ compile: $(REBAR) .git/hooks/pre-commit
.git/hooks/pre-commit: hooks/pre-commit
cp hooks/pre-commit .git/hooks
pre-commit: lint xref dialyzer test
pre-commit: test-scripts test-vsn lint xref dialyzer test
dialyzer: $(REBAR)
$(REBAR) dialyzer
......@@ -14,6 +18,9 @@ dialyzer: $(REBAR)
xref: $(REBAR)
$(REBAR) xref
test-scripts:
for i in rel/files/*; do (head -1 $$i | grep -v sh > /dev/null) || bash -n $$i || exit 1; done;
test: $(REBAR)
$(REBAR) eunit
......@@ -42,3 +49,22 @@ tree-diff: tree
docs:
$(REBAR) edoc
###
### Version
###
vsn:
@echo "## rel/pkg/Makefile"
@echo "$(PKG_VSN)"
@echo "## apps/$(APP)/src/$(APP).app.src"
@echo "$(APP_VSN)"
@echo "## rebar.config"
@echo "$(REBAR_VSN)"
@echo "## rel/vars.config"
@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)
......@@ -85,7 +85,7 @@
%%-------------------------------------------------------------------
{relx,
[{release, {dalmatinerfe, "0.2.0"},
[{release, {dalmatinerfe, "0.2.1"},
[sasl,
dalmatiner_frontend,
{runtime_tools, load}, %% for dyntrace
......
VERSION=0.2.0
VERSION=0.2.1
COMPONENT_INTERNAL=dalmatinerfe
COMPONENT=dalmatinerfe
DEPS="erlang" "coreutils" "sudo"
......
......@@ -29,3 +29,5 @@
{platform_lib_dir, "./lib"}.
{platform_log_dir, "/data/dalmatinerfe/log"}.
{bugsnag_app_version, "0.2.1"}.
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