diff options
author | Tristan Sloughter <[email protected]> | 2013-03-11 19:37:17 -0500 |
---|---|---|
committer | Tristan Sloughter <[email protected]> | 2013-03-13 13:43:01 -0500 |
commit | 937c776c131c9e2e04aefc6b4f320e37b35115c2 (patch) | |
tree | e7ab10b5bf5724790b2b766d5993fa5e44dbc128 | |
parent | 279ab4bf7ae5baa51638710a8967d86b3d4cf5ae (diff) | |
download | relx-937c776c131c9e2e04aefc6b4f320e37b35115c2.tar.gz relx-937c776c131c9e2e04aefc6b4f320e37b35115c2.tar.bz2 relx-937c776c131c9e2e04aefc6b4f320e37b35115c2.zip |
copy start_clean boot file along with erts
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | README.md | 10 | ||||
-rw-r--r-- | src/rcl_prv_assembler.erl | 7 |
3 files changed, 17 insertions, 2 deletions
@@ -55,7 +55,7 @@ update-deps: compile: $(REBAR) skip_deps=true compile -escript: compile +escript: deps $(REBAR) skip_deps=true escriptize doc: @@ -14,11 +14,19 @@ applications it will generate a release output. That output depends heavily on what plugins available and what options are defined, but usually it is simple a well configured release directory. - relcool -c relcool.config -l ~/my-dirs --relname foo --relvsn 0.0.1 --target-spec myapp --target-spec getopt>=0.5.1 -o output-dir + relcool -c relcool.config -l ~/my-dirs --relname foo --relvsn 0.0.1 --target-spec myapp --target-spec getopt>=0.5.1 -o output-dir The *release-specification-file* is optional but otherwise contains additional specification information for releases. +# BUILDING + +To build relcool and generate a standalone escript executable: + + $ make escript + +This creates the executable `relcool`. + # OPTIONS -r *STRING*, \--root *STRING* diff --git a/src/rcl_prv_assembler.erl b/src/rcl_prv_assembler.erl index e85b293..23a13bf 100644 --- a/src/rcl_prv_assembler.erl +++ b/src/rcl_prv_assembler.erl @@ -286,6 +286,13 @@ include_erts(State, Release, OutputDir, RelDir) -> ok = ec_file:mkdir_p(LocalErts), ok = ec_file:copy(ErtsDir, LocalErts, [recursive]), ok = file:write_file(filename:join([LocalErts, "bin", "erl"]), erl_script(ErtsVersion)), + case rcl_state:get(State, extended_start_script, false) of + true -> + ok = ec_file:copy(filename:join([Prefix, "bin", "start_clean.boot"]), + filename:join([OutputDir, "bin", "start_clean.boot"])); + false -> + ok + end, make_boot_script(State, Release, OutputDir, RelDir) end; _ -> |