aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--README.md10
-rw-r--r--src/rcl_prv_assembler.erl7
3 files changed, 17 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 96e14ae..5a5e097 100644
--- a/Makefile
+++ b/Makefile
@@ -55,7 +55,7 @@ update-deps:
compile:
$(REBAR) skip_deps=true compile
-escript: compile
+escript: deps
$(REBAR) skip_deps=true escriptize
doc:
diff --git a/README.md b/README.md
index 5407002..419bc50 100644
--- a/README.md
+++ b/README.md
@@ -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;
_ ->