From: <pa...@us...> - 2010-12-25 00:36:04
|
Revision: 5336 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=5336&view=rev Author: patearl Date: 2010-12-25 00:35:58 +0000 (Sat, 25 Dec 2010) Log Message: ----------- ShowBuildMenu.bat: Use set /p if choice is not available. This is needed for Windows XP. Modified Paths: -------------- trunk/nhibernate/ShowBuildMenu.bat Modified: trunk/nhibernate/ShowBuildMenu.bat =================================================================== --- trunk/nhibernate/ShowBuildMenu.bat 2010-12-24 20:24:43 UTC (rev 5335) +++ trunk/nhibernate/ShowBuildMenu.bat 2010-12-25 00:35:58 UTC (rev 5336) @@ -17,8 +17,13 @@ echo F. Build NHibernate (Release) echo G. Build Release Package (Also runs tests and creates documentation) echo. -choice /C abcdefg +if exist %SYSTEMROOT%\System32\choice.exe ( goto prompt-choice ) +goto prompt-set + +:prompt-choice +choice /C:abcdefg + if errorlevel 255 goto end if errorlevel 7 goto build-release-package if errorlevel 6 goto build-release @@ -29,6 +34,18 @@ if errorlevel 1 goto build-visual-studio if errorlevel 0 goto end +:prompt-set +set /p OPT=[A, B, C, D, E, F, G]? + +if /I "%OPT%"=="A" goto build-visual-studio +if /I "%OPT%"=="B" goto help-test-setup +if /I "%OPT%"=="C" goto help-larger-window +if /I "%OPT%"=="D" goto build-test +if /I "%OPT%"=="E" goto build-debug +if /I "%OPT%"=="F" goto build-release +if /I "%OPT%"=="G" goto build-release-package +goto prompt-set + :help-test-setup echo. echo 1. Install SQL Server 2008 (or use the database included with VS). This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |