aboutsummaryrefslogtreecommitdiffstats
path: root/priv/templates/bin_windows.dtl
diff options
context:
space:
mode:
authorTristan Sloughter <[email protected]>2015-03-31 17:49:32 -0500
committerTristan Sloughter <[email protected]>2015-03-31 17:49:32 -0500
commitb2b7c4aff99fd8e2c4ec7053aa382b4b356fecf5 (patch)
tree91cc2788956550b19667df28c614df3c0285cbfb /priv/templates/bin_windows.dtl
parentf03450a49a906b7d0ea060f49cc651a8fa3f3b7b (diff)
parent4242fc4c3d7d907475ad41d5de7ded3f51183edd (diff)
downloadrelx-b2b7c4aff99fd8e2c4ec7053aa382b4b356fecf5.tar.gz
relx-b2b7c4aff99fd8e2c4ec7053aa382b4b356fecf5.tar.bz2
relx-b2b7c4aff99fd8e2c4ec7053aa382b4b356fecf5.zip
Merge pull request #260 from syl20bnr/remove_uneeded_chars
Remove unneeded @ which may output error messages
Diffstat (limited to 'priv/templates/bin_windows.dtl')
-rw-r--r--priv/templates/bin_windows.dtl16
1 files changed, 8 insertions, 8 deletions
diff --git a/priv/templates/bin_windows.dtl b/priv/templates/bin_windows.dtl
index 7a8952b..226549d 100644
--- a/priv/templates/bin_windows.dtl
+++ b/priv/templates/bin_windows.dtl
@@ -9,7 +9,7 @@
:: Set the root release directory based on the location of this batch file
@set script_dir=%~dp0
@for %%A in ("%script_dir%\..") do (
- @set "release_root_dir=%%~fA"
+ set "release_root_dir=%%~fA"
)
@set rel_dir=%release_root_dir%\releases\%rel_vsn%
@@ -42,9 +42,9 @@ cd %rootdir%
:find_erts_dir
@set erts_dir=%release_root_dir%\erts-%erts_vsn%
@if exist %erts_dir% (
- @goto :set_erts_dir_from_default
+ goto :set_erts_dir_from_default
) else (
- @goto :set_erts_dir_from_erl
+ goto :set_erts_dir_from_erl
)
@goto :eof
@@ -57,11 +57,11 @@ cd %rootdir%
:: Set the ERTS dir from erl
:set_erts_dir_from_erl
@for /f "delims=" %%i in ('where erl') do (
- @set erl=%%i
+ set erl=%%i
)
@set dir_cmd="%erl%" -noshell -eval "io:format(\"~s\", [filename:nativename(code:root_dir())])." -s init stop
@for /f %%i in ('%%dir_cmd%%') do (
- @set erl_root=%%i
+ set erl_root=%%i
)
@set erts_dir=%erl_root%\erts-%erts_vsn%
@set rootdir=%erl_root%
@@ -71,15 +71,15 @@ cd %rootdir%
:find_sys_config
@set possible_sys=%rel_dir%\sys.config
@if exist "%possible_sys%" (
- @set sys_config=-config "%possible_sys%"
+ 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%
+ set boot_script=%rel_dir%\%rel_name%
) else (
- @set boot_script=%rel_dir%\start
+ set boot_script=%rel_dir%\start
)
@goto :eof