From 5eb6b7dfdadd0d5b32597a722912f5faf82cad75 Mon Sep 17 00:00:00 2001 From: Fred Hebert Date: Sat, 13 Aug 2016 18:09:51 -0400 Subject: 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 --- rebar.config | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rebar.config b/rebar.config index f91d61b..5cbc2be 100644 --- a/rebar.config +++ b/rebar.config @@ -12,6 +12,10 @@ {cth_readable, "1.2.3"}, {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_emu_args, "%%! +sbtu +A0\n"}. %% escript_incl_extra is for internal rebar-private use only. -- cgit v1.1