Переглянути джерело

include _checkouts in release lib dirs if it exists

pull/373/head
Tristan Sloughter 10 роки тому
джерело
коміт
ae7d1ca1ea
2 змінених файлів з 4 додано та 2 видалено
  1. +2
    -1
      src/rebar_prv_release.erl
  2. +2
    -1
      src/rebar_prv_tar.erl

+ 2
- 1
src/rebar_prv_release.erl Переглянути файл

@ -35,8 +35,9 @@ do(State) ->
Caller = rebar_state:get(State, caller, api), Caller = rebar_state:get(State, caller, api),
Options = rebar_state:command_args(State), Options = rebar_state:command_args(State),
DepsDir = rebar_dir:deps_dir(State), DepsDir = rebar_dir:deps_dir(State),
ProjectAppDirs = lists:delete(".", ?DEFAULT_PROJECT_APP_DIRS),
LibDirs = rebar_utils:filtermap(fun ec_file:exists/1, LibDirs = rebar_utils:filtermap(fun ec_file:exists/1,
[DepsDir | lists:delete(".", ?DEFAULT_PROJECT_APP_DIRS)]),
[?DEFAULT_CHECKOUTS_DIR, DepsDir | ProjectAppDirs]),
OutputDir = filename:join(rebar_dir:base_dir(State), ?DEFAULT_RELEASE_DIR), OutputDir = filename:join(rebar_dir:base_dir(State), ?DEFAULT_RELEASE_DIR),
AllOptions = string:join(["release" | Options], " "), AllOptions = string:join(["release" | Options], " "),
try try

+ 2
- 1
src/rebar_prv_tar.erl Переглянути файл

@ -35,8 +35,9 @@ do(State) ->
Caller = rebar_state:get(State, caller, api), Caller = rebar_state:get(State, caller, api),
Options = rebar_state:command_args(State), Options = rebar_state:command_args(State),
DepsDir = rebar_dir:deps_dir(State), DepsDir = rebar_dir:deps_dir(State),
ProjectAppDirs = lists:delete(".", ?DEFAULT_PROJECT_APP_DIRS),
LibDirs = rebar_utils:filtermap(fun ec_file:exists/1, LibDirs = rebar_utils:filtermap(fun ec_file:exists/1,
[DepsDir | lists:delete(".", ?DEFAULT_PROJECT_APP_DIRS)]),
[?DEFAULT_CHECKOUTS_DIR, DepsDir | ProjectAppDirs]),
OutputDir = filename:join(rebar_dir:base_dir(State), ?DEFAULT_RELEASE_DIR), OutputDir = filename:join(rebar_dir:base_dir(State), ?DEFAULT_RELEASE_DIR),
AllOptions = string:join(["release", "tar" | Options], " "), AllOptions = string:join(["release", "tar" | Options], " "),
case rebar_state:get(State, relx, []) of case rebar_state:get(State, relx, []) of

Завантаження…
Відмінити
Зберегти