aboutsummaryrefslogtreecommitdiffstats
path: root/priv/templates/bin_windows
diff options
context:
space:
mode:
authoremtenet <[email protected]>2016-04-16 13:09:58 +1000
committeremtenet <[email protected]>2016-04-29 22:01:08 +1000
commit77b8e9202715d526b1bae06b4a8a7882e501dfdc (patch)
treec3caa138a093a821001dd9532882792b8d0a471f /priv/templates/bin_windows
parent1e15397a4924804f248facc18ccd07076baef7a4 (diff)
downloadrelx-77b8e9202715d526b1bae06b4a8a7882e501dfdc.tar.gz
relx-77b8e9202715d526b1bae06b4a8a7882e501dfdc.tar.bz2
relx-77b8e9202715d526b1bae06b4a8a7882e501dfdc.zip
Add a boot variable to Windows scripts
Add missing -boot_var argument to Windows scripts when starting erlang. Use different boot variables on Windows vs non-Windows. The built-in $ROOT boot variable points to the erts directory on Windows (dictated by erl.ini [erlang] Rootdir=) and so a boot variable $RELEASE_DIR is made pointing to the release directory
Diffstat (limited to 'priv/templates/bin_windows')
-rw-r--r--priv/templates/bin_windows3
1 files changed, 2 insertions, 1 deletions
diff --git a/priv/templates/bin_windows b/priv/templates/bin_windows
index 7b1d4d8..fbe4a71 100644
--- a/priv/templates/bin_windows
+++ b/priv/templates/bin_windows
@@ -34,7 +34,8 @@ cd %rootdir%
@echo Rootdir=%converted_rootdir% >> "%erl_ini%"
:: Start the release in an `erl` shell
-@"%erl%" %erl_opts% %sys_config% -boot "%boot_script%" %*
+@set boot=-boot "%boot_script%" -boot_var RELEASE_DIR "%release_root_dir%"
+@"%erl%" %erl_opts% %sys_config% %boot% %*
@goto :eof