summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rebar.config4
1 files changed, 4 insertions, 0 deletions
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.