aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--priv/templates/nodetool1
-rw-r--r--rebar.config2
-rw-r--r--rebar.lock2
-rw-r--r--src/relx.app.src2
-rw-r--r--src/rlx_app_discovery.erl5
-rw-r--r--src/rlx_config.erl7
-rw-r--r--src/rlx_prv_release.erl5
-rw-r--r--src/rlx_topo.erl2
-rw-r--r--src/rlx_util.erl5
9 files changed, 9 insertions, 22 deletions
diff --git a/priv/templates/nodetool b/priv/templates/nodetool
index dee14b4..0a0e229 100644
--- a/priv/templates/nodetool
+++ b/priv/templates/nodetool
@@ -1,3 +1,4 @@
+#!/usr/bin/env escript
%% -*- mode: erlang;erlang-indent-level: 4;indent-tabs-mode: nil -*-
%% ex: ft=erlang ts=4 sw=4 et
%% -------------------------------------------------------------------
diff --git a/rebar.config b/rebar.config
index fce0a53..751579f 100644
--- a/rebar.config
+++ b/rebar.config
@@ -1,6 +1,6 @@
%% -*- mode: Erlang; fill-column: 80; comment-column: 75; -*-
%% Dependencies ================================================================
-{deps, [{erlware_commons, "0.15.0"},
+{deps, [{erlware_commons, "0.16.0"},
{providers, "1.4.1"},
{getopt, "0.8.2"},
{bbmustache, "1.0.3"}
diff --git a/rebar.lock b/rebar.lock
index a5f7155..436477e 100644
--- a/rebar.lock
+++ b/rebar.lock
@@ -1,4 +1,4 @@
[{<<"bbmustache">>,{pkg,<<"bbmustache">>,<<"1.0.3">>},0},
- {<<"erlware_commons">>,{pkg,<<"erlware_commons">>,<<"0.15.0">>},0},
+ {<<"erlware_commons">>,{pkg,<<"erlware_commons">>,<<"0.16.0">>},0},
{<<"getopt">>,{pkg,<<"getopt">>,<<"0.8.2">>},0},
{<<"providers">>,{pkg,<<"providers">>,<<"1.4.1">>},0}].
diff --git a/src/relx.app.src b/src/relx.app.src
index 639167a..8329eb9 100644
--- a/src/relx.app.src
+++ b/src/relx.app.src
@@ -1,6 +1,6 @@
{application,relx,
[{description,"Release assembler for Erlang/OTP Releases"},
- {vsn,"3.5.0"},
+ {vsn,"git"},
{modules,[]},
{registered,[]},
{applications,[kernel,stdlib,getopt,erlware_commons,bbmustache,
diff --git a/src/rlx_app_discovery.erl b/src/rlx_app_discovery.erl
index 3d58185..3d3bdb1 100644
--- a/src/rlx_app_discovery.erl
+++ b/src/rlx_app_discovery.erl
@@ -300,8 +300,3 @@ get_deps(AppDir, AppName, AppVsn, AppDetail) ->
%%%===================================================================
%%% Test Functions
%%%===================================================================
-
--ifndef(NOTEST).
--include_lib("eunit/include/eunit.hrl").
-
--endif.
diff --git a/src/rlx_config.erl b/src/rlx_config.erl
index 0ee3543..b2de094 100644
--- a/src/rlx_config.erl
+++ b/src/rlx_config.erl
@@ -295,9 +295,10 @@ merge_configs([{Key, Value} | CliTerms], ConfigTerms) ->
end.
parse_vsn(Vsn) when Vsn =:= semver ; Vsn =:= "semver" ->
- parse_vsn({semver, "v"});
-parse_vsn({semver, Prefix}) ->
- {ok, V} = ec_git_vsn:vsn({Prefix}),
+ {ok, V} = ec_git_vsn:vsn([]),
+ V;
+parse_vsn({semver, _}) ->
+ {ok, V} = ec_git_vsn:vsn([]),
V;
parse_vsn({cmd, Command}) ->
V = os:cmd(Command),
diff --git a/src/rlx_prv_release.erl b/src/rlx_prv_release.erl
index bd58434..f83cce3 100644
--- a/src/rlx_prv_release.erl
+++ b/src/rlx_prv_release.erl
@@ -221,8 +221,3 @@ get_realized_release(State, RelName, RelVsn) ->
%%%===================================================================
%%% Test Functions
%%%===================================================================
-
--ifndef(NOTEST).
--include_lib("eunit/include/eunit.hrl").
-
--endif.
diff --git a/src/rlx_topo.erl b/src/rlx_topo.erl
index d24f227..a07a4a7 100644
--- a/src/rlx_topo.erl
+++ b/src/rlx_topo.erl
@@ -169,7 +169,7 @@ remove_pairs(L1, L2) ->
%%====================================================================
%% Tests
%%====================================================================
--ifndef(NOTEST).
+-ifdef(TEST).
-include_lib("eunit/include/eunit.hrl").
topo_1_test() ->
diff --git a/src/rlx_util.erl b/src/rlx_util.erl
index 2c7c129..9b86ad3 100644
--- a/src/rlx_util.erl
+++ b/src/rlx_util.erl
@@ -300,8 +300,3 @@ cp_r_win32(Source,Dest) ->
%%%===================================================================
%%% Test Functions
%%%===================================================================
-
--ifndef(NOTEST).
--include_lib("eunit/include/eunit.hrl").
-
--endif.