diff options
author | Tristan Sloughter <[email protected]> | 2016-10-06 14:00:43 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2016-10-06 14:00:43 -0700 |
commit | be045b566fbbf63b0074dc970dd4e65d8f644302 (patch) | |
tree | 5f26b4f4f2e4287863360abdb9728cb66de5bd17 /src | |
parent | 2ba3b82801ade6ee803c1831a629d0a099df7a7c (diff) | |
parent | 3a2003e5683aaeaab69a403abba47df4b0b891c2 (diff) | |
download | relx-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.erl | 8 |
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 -> |