aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTristan Sloughter <[email protected]>2016-10-06 14:00:43 -0700
committerGitHub <[email protected]>2016-10-06 14:00:43 -0700
commitbe045b566fbbf63b0074dc970dd4e65d8f644302 (patch)
tree5f26b4f4f2e4287863360abdb9728cb66de5bd17 /src
parent2ba3b82801ade6ee803c1831a629d0a099df7a7c (diff)
parent3a2003e5683aaeaab69a403abba47df4b0b891c2 (diff)
downloadrelx-be045b566fbbf63b0074dc970dd4e65d8f644302.tar.gz
relx-be045b566fbbf63b0074dc970dd4e65d8f644302.tar.bz2
relx-be045b566fbbf63b0074dc970dd4e65d8f644302.zip
Merge pull request #515 from lrascao/feature/erts_include_src
Don't include erts src when user requests src not be included
Diffstat (limited to 'src')
-rw-r--r--src/rlx_prv_assembler.erl8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/rlx_prv_assembler.erl b/src/rlx_prv_assembler.erl
index 53b7dfa..1f64886 100644
--- a/src/rlx_prv_assembler.erl
+++ b/src/rlx_prv_assembler.erl
@@ -502,6 +502,14 @@ include_erts(State, Release, OutputDir, RelDir) ->
ok = file:write_file(ErlIni, erl_ini(OutputDir, ErtsVersion))
end,
+ %% delete erts src if the user requested it not be included
+ case rlx_state:include_src(State) of
+ true -> ok;
+ false ->
+ SrcDir = filename:join([LocalErts, "src"]),
+ ok = ec_file:remove(SrcDir, [recursive])
+ end,
+
case rlx_state:get(State, extended_start_script, false) of
true ->