aboutsummaryrefslogtreecommitdiffstats
path: root/priv/templates
diff options
context:
space:
mode:
authorBikram Chatterjee <[email protected]>2017-09-26 18:19:52 +0200
committerBikram Chatterjee <[email protected]>2017-09-26 18:19:52 +0200
commit6821e8cc2c22e3bf4fa77a31a68f822f2180e294 (patch)
tree87638fe97ec13a3393bb2cccf220e58f622c5ccb /priv/templates
parent769ca6f37e71d9136602a05a06dd4bf114ac465c (diff)
downloadrelx-6821e8cc2c22e3bf4fa77a31a68f822f2180e294.tar.gz
relx-6821e8cc2c22e3bf4fa77a31a68f822f2180e294.tar.bz2
relx-6821e8cc2c22e3bf4fa77a31a68f822f2180e294.zip
reverted ini file delete, extra args from vm.args
Diffstat (limited to 'priv/templates')
-rw-r--r--priv/templates/extended_bin_windows14
1 files changed, 14 insertions, 0 deletions
diff --git a/priv/templates/extended_bin_windows b/priv/templates/extended_bin_windows
index 7c88b66..656aa05 100644
--- a/priv/templates/extended_bin_windows
+++ b/priv/templates/extended_bin_windows
@@ -53,6 +53,9 @@
set cookie=%%J
)
+:: Write the erl.ini file to set up paths relative to this script
+@call :write_ini
+
:: Collect any additional VM args into erl_opts
@setlocal EnableDelayedExpansion
@for /f "usebackq tokens=1-2" %%I in (`findstr /r "^[^#]" "%vm_args%"`) do @(
@@ -139,6 +142,17 @@
)
@goto :eof
+:: Write the erl.ini file
+:write_ini
+@set erl_ini=%erts_dir%\bin\erl.ini
+@set converted_bindir=%bindir:\=\\%
+@set converted_rootdir=%rootdir:\=\\%
+@echo [erlang] > "%erl_ini%"
+@echo Bindir=%converted_bindir% >> "%erl_ini%"
+@echo Progname=%progname% >> "%erl_ini%"
+@echo Rootdir=%converted_rootdir% >> "%erl_ini%"
+@goto :eof
+
:: Display usage information
:usage
@echo usage: %~n0 ^(install^|uninstall^|start^|stop^|restart^|upgrade^|downgrade^|console^|ping^|list^|attach^)