Fix ERL_TOP calculation for Windows SDK shell
diff --git a/bin/shell.cmd b/bin/shell.cmd
index e1c3dc3..a5a9e95 100755
--- a/bin/shell.cmd
+++ b/bin/shell.cmd
@@ -76,7 +76,6 @@
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:shell_select
for /f "usebackq" %%i in (`c:\tools\cygwin\bin\cygpath.exe %WERL_DIR%`) do @set WERL_PATH=%%i
-set ERL_TOP=%WERL_PATH%/otp_src_%OTP_REL%
echo Select a shell:
echo w for Windows prompt (default)
@@ -90,6 +89,7 @@
goto :win_shell
:unix_shell
+set ERL_TOP=%WERL_PATH%/otp_src_%OTP_REL%
color
title Building in %ERL_TOP% with OTP %OTP_REL% and Erlang v%ERTS_VSN%
c:\tools\cygwin\bin\bash %relax%\bin\shell.sh
@@ -97,6 +97,7 @@
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:win_shell
+set ERL_TOP=%WERL_DIR%\otp_src_%OTP_REL%
echo Type exit to stop relaxing.
title On the couch. Type exit to stop relaxing.
:: Need these things on the path to build/run CouchDB