Skip to content

Commit

Permalink
Fix ERL_TOP calculation for Windows SDK shell
Browse files Browse the repository at this point in the history
  • Loading branch information
wohali committed Jun 16, 2016
1 parent ff1f945 commit 5e45534
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/shell.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ goto shell_select
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
: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)
Expand All @@ -90,13 +89,15 @@ if /i "%choice%"=="p" goto ps_shell
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
goto eof

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
: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
Expand Down

0 comments on commit 5e45534

Please sign in to comment.