浏览代码

improve escriptize provider

pull/501/head
Tristan Sloughter 10 年前
父节点
当前提交
cf4f079f25
共有 2 个文件被更改,包括 3 次插入6 次删除
  1. +0
    -3
      rebar.config
  2. +3
    -3
      src/rebar_prv_escriptize.erl

+ 0
- 3
rebar.config 查看文件

@ -18,9 +18,6 @@
{git, "https://github.com/jcomellas/getopt.git",
{branch, "master"}}}]}.
{escript_incl_apps,
[getopt, erlware_commons, relx, providers, rebar]}.
{escript_top_level_app, rebar}.
{escript_name, rebar3}.
{escript_emu_args, "%%! +sbtu +A0\n"}.
%% escript_incl_extra is for internal rebar-private use only.

+ 3
- 3
src/rebar_prv_escriptize.erl 查看文件

@ -90,8 +90,8 @@ escriptize(State0, App) ->
%% Look for a list of other applications (dependencies) to include
%% in the output file. We then use the .app files for each of these
%% to pull in all the .beam files.
InclApps = lists:usort(rebar_state:get(State, escript_incl_apps, [])
++ all_deps(State)),
InclApps = lists:usort([ec_cnv:to_atom(AppName) | rebar_state:get(State, escript_incl_apps, [])
++ all_deps(State)]),
AllApps = rebar_state:all_deps(State)++rebar_state:project_apps(State),
InclBeams = get_apps_beams(InclApps, AllApps),
@ -135,7 +135,7 @@ format_error({bad_name, App}) ->
io_lib:format("Failed to get ebin/ directory for "
"escript_incl_app: ~p", [App]);
format_error(no_main_app) ->
io_lib:format("Multiple project apps and {rebar_escript_plugin, [{main_app, atom()}]}."
io_lib:format("Multiple project apps and {escript_main_app, atom()}."
" not set in rebar.config", []).
%% ===================================================================

正在加载...
取消
保存