浏览代码

Use hooks to generate rebar3 executable faster

Repeats some of the steps used in the bootstrap script for non-windows
systems so that 'rebar3 escriptize' can be used in development for
faster results:

- ./bootstrap  9.95s user 1.55s system 102% cpu 11.234 total
- rebar3 escriptize  0.49s user 0.14s system 101% cpu 0.623 total
pull/1299/head
Fred Hebert 8 年前
父节点
当前提交
5eb6b7dfda
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. +4
    -0
      rebar.config

+ 4
- 0
rebar.config 查看文件

@ -12,6 +12,10 @@
{cth_readable, "1.2.3"}, {cth_readable, "1.2.3"},
{eunit_formatters, "0.3.1"}]}. {eunit_formatters, "0.3.1"}]}.
{post_hooks, [{"(linux|darwin|solaris|freebsd|netbsd|openbsd)",
escriptize,
"cp $REBAR_BUILD_DIR/bin/rebar3 ./rebar3 && chmod u+x rebar3"}]}.
{escript_name, rebar3}. {escript_name, rebar3}.
{escript_emu_args, "%%! +sbtu +A0\n"}. {escript_emu_args, "%%! +sbtu +A0\n"}.
%% escript_incl_extra is for internal rebar-private use only. %% escript_incl_extra is for internal rebar-private use only.

正在加载...
取消
保存