aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJordan Wilberding <[email protected]>2013-04-10 05:53:26 -0700
committerJordan Wilberding <[email protected]>2013-04-10 05:53:26 -0700
commitbfc2e2f85c941460c4b59636a7bb2ade806f0fdf (patch)
tree706c85412b1604e06df2920ba1c05ff84cd58b03 /src
parent36de196be67e66a7de44cc103babd20acf8548c4 (diff)
parenta28e7130b8ced84cd831c9e96bcbe1fb9b3c6d8f (diff)
downloadrelx-bfc2e2f85c941460c4b59636a7bb2ade806f0fdf.tar.gz
relx-bfc2e2f85c941460c4b59636a7bb2ade806f0fdf.tar.bz2
relx-bfc2e2f85c941460c4b59636a7bb2ade806f0fdf.zip
Merge pull request #53 from zerotao/master
Remove bin/erl from the local ERTS copy before writing a the new version.
Diffstat (limited to 'src')
-rw-r--r--src/rcl_prv_assembler.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rcl_prv_assembler.erl b/src/rcl_prv_assembler.erl
index 90a6b72..f40bdc5 100644
--- a/src/rcl_prv_assembler.erl
+++ b/src/rcl_prv_assembler.erl
@@ -291,6 +291,7 @@ include_erts(State, Release, OutputDir, RelDir) ->
true ->
ok = ec_file:mkdir_p(LocalErts),
ok = ec_file:copy(ErtsDir, LocalErts, [recursive]),
+ ok = ec_file:remove(filename:join([LocalErts, "bin", "erl"])),
ok = file:write_file(filename:join([LocalErts, "bin", "erl"]), erl_script(ErtsVersion)),
case rcl_state:get(State, extended_start_script, false) of
true ->