summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTuncer Ayaz <tuncer.ayaz@gmail.com>2012-06-17 22:57:33 +0200
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2012-06-17 22:57:33 +0200
commit83879c22e1634f01c0476026de6414b4a0942053 (patch)
tree9e8e27b904e151869be5b41712d7390522f8d49b
parente7e2bc17b2620374ec0c112bf9598a4102b2b2ff (diff)
Add missing escriptize comments
-rw-r--r--rebar.config2
-rw-r--r--src/rebar_escripter.erl3
2 files changed, 4 insertions, 1 deletions
diff --git a/rebar.config b/rebar.config
index 98c7aad..bc423e3 100644
--- a/rebar.config
+++ b/rebar.config
@@ -4,6 +4,8 @@
{app_bin, ["priv/rebar"]}.
{escript_shebang, "#!/usr/bin/env escript\n"}.
{escript_emu_args, "%%! -noshell -noinput\n"}.
+%% escript_incl_extra is for internal rebar-private use only.
+%% Do not use outside rebar. Config interface is not stable.
{escript_incl_extra, [{"priv/templates/*", "priv/templates"}]}.
{erl_opts, [warnings_as_errors]}.
{xref_checks, []}.
diff --git a/src/rebar_escripter.erl b/src/rebar_escripter.erl
index 6139d6e..04fb615 100644
--- a/src/rebar_escripter.erl
+++ b/src/rebar_escripter.erl
@@ -120,7 +120,8 @@ copy_files(Config, AppName, Temp) ->
%% copy incl_apps files
lists:foreach(fun(Src) -> ok = copy_files(Src, EbinDir) end, InclEbinDirs),
- %% Look for a list of extra files to copy
+ %% Look for a list of extra files to copy.
+ %% For internal rebar-private use only. Do not use outside rebar.
InclExtr = rebar_config:get_local(Config, escript_incl_extra, []),
lists:foreach(fun({Src, Dst}) ->
copy_files(Src, filename:join(Temp, Dst))