Browse Source

update release run and variables in templates

pull/3/head
Tristan Sloughter 10 years ago
parent
commit
5980a3c72a
3 changed files with 2 additions and 1 deletions
  1. +1
    -0
      priv/templates/otp_lib.template
  2. +1
    -0
      priv/templates/otp_rel.template
  3. +0
    -1
      src/rebar_prv_release.erl

+ 1
- 0
priv/templates/otp_lib.template View File

@ -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"}.

+ 1
- 0
priv/templates/otp_rel.template View File

@ -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"}.

+ 0
- 1
src/rebar_prv_release.erl View File

@ -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}.

Loading…
Cancel
Save