diff options
author | syl20bnr <[email protected]> | 2014-11-03 13:59:20 -0500 |
---|---|---|
committer | syl20bnr <[email protected]> | 2014-11-03 13:59:20 -0500 |
commit | 4ea2c2de74e72782649c77fe83f6e82bef7b12e1 (patch) | |
tree | a7aa133108272df1f02e30568ef3ffb3e82f7ef5 /priv/templates/bin_windows.dtl | |
parent | 9b88efae84344abfb601280de4028b3dfe094e2f (diff) | |
download | relx-4ea2c2de74e72782649c77fe83f6e82bef7b12e1.tar.gz relx-4ea2c2de74e72782649c77fe83f6e82bef7b12e1.tar.bz2 relx-4ea2c2de74e72782649c77fe83f6e82bef7b12e1.zip |
Fix *bin_windows.dtl boot script path
In order to make it work with both compressed and uncompressed releases
Diffstat (limited to 'priv/templates/bin_windows.dtl')
-rw-r--r-- | priv/templates/bin_windows.dtl | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/priv/templates/bin_windows.dtl b/priv/templates/bin_windows.dtl index 170d957..7a8952b 100644 --- a/priv/templates/bin_windows.dtl +++ b/priv/templates/bin_windows.dtl @@ -15,6 +15,7 @@ @call :find_erts_dir @call :find_sys_config +@call :set_boot_script_var @set rootdir=%release_root_dir% @set bindir=%erts_dir%\bin @@ -33,7 +34,7 @@ cd %rootdir% @echo Rootdir=%converted_rootdir% >> "%erl_ini%" :: Start the release in an `erl` shell -@%erl% %erl_opts% %sys_config% -boot "%rel_dir%\%rel_name%" %* +@%erl% %erl_opts% %sys_config% -boot "%boot_script%" %* @goto :eof @@ -73,3 +74,12 @@ cd %rootdir% @set sys_config=-config "%possible_sys%" ) @goto :eof + +:: set boot_script variable +:set_boot_script_var +@if exist "%rel_dir%\%rel_name%.boot" ( + @set boot_script=%rel_dir%\%rel_name% +) else ( + @set boot_script=%rel_dir%\start +) +@goto :eof |