diff options
Diffstat (limited to 'priv/templates')
-rw-r--r-- | priv/templates/extended_bin_windows | 14 |
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^) |