From 6821e8cc2c22e3bf4fa77a31a68f822f2180e294 Mon Sep 17 00:00:00 2001 From: Bikram Chatterjee Date: Tue, 26 Sep 2017 18:19:52 +0200 Subject: reverted ini file delete, extra args from vm.args --- priv/templates/extended_bin_windows | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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^) -- cgit v1.2.3