summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Sloughter <t@crashfast.com>2014-09-16 19:41:21 -0500
committerTristan Sloughter <t@crashfast.com>2014-09-16 19:41:21 -0500
commit5980a3c72aacf5a4d2054ebb09926cdce5ca987b (patch)
treebfe3911377ad45b310a5b68dedd7721826fac8fd
parent884d298291e64fad99f096ee82018b568e0985f2 (diff)
update release run and variables in templates
-rw-r--r--priv/templates/otp_lib.template1
-rw-r--r--priv/templates/otp_rel.template1
-rw-r--r--src/rebar_prv_release.erl1
3 files changed, 2 insertions, 1 deletions
diff --git a/priv/templates/otp_lib.template b/priv/templates/otp_lib.template
index 605de9c..1388dfb 100644
--- a/priv/templates/otp_lib.template
+++ b/priv/templates/otp_lib.template
@@ -1,3 +1,4 @@
+{variables, []}.
{template, "app.erl", "src/{{appid}}_app.erl"}.
{template, "sup.erl", "src/{{appid}}_sup.erl"}.
{template, "otp_lib.app.src", "src/{{appid}}.app.src"}.
diff --git a/priv/templates/otp_rel.template b/priv/templates/otp_rel.template
index 450c539..b75c1da 100644
--- a/priv/templates/otp_rel.template
+++ b/priv/templates/otp_rel.template
@@ -1,3 +1,4 @@
+{variables, []}.
{template, "app.erl", "apps/{{appid}}/src/{{appid}}_app.erl"}.
{template, "sup.erl", "apps/{{appid}}/src/{{appid}}_sup.erl"}.
{template, "otp_app.app.src", "apps/{{appid}}/src/{{appid}}.app.src"}.
diff --git a/src/rebar_prv_release.erl b/src/rebar_prv_release.erl
index d084ad5..43a30ca 100644
--- a/src/rebar_prv_release.erl
+++ b/src/rebar_prv_release.erl
@@ -31,6 +31,5 @@ init(State) ->
-spec do(rebar_state:t()) -> {ok, rebar_state:t()} | relx:error().
do(Config) ->
- RelxConfig = rebar_state:get_local(Config, relx, []),
relx:main("release"),
{ok, Config}.