[Scummvm-cvs-logs] SF.net SVN: scummvm:[45650] scummvm/trunk/dists
thebluegr at users.sourceforge.net
thebluegr at users.sourceforge.net
Wed Nov 4 09:05:13 CET 2009
Revision: 45650
http://scummvm.svn.sourceforge.net/scummvm/?rev=45650&view=rev
Author: thebluegr
Date: 2009-11-04 08:05:12 +0000 (Wed, 04 Nov 2009)
Log Message:
-----------
Provide compatibility with 2000/XP, where the "choice" command is not available, and made the prompt more verbose
Modified Paths:
--------------
scummvm/trunk/dists/msvc8/create_msvc8.bat
scummvm/trunk/dists/msvc9/create_msvc9.bat
Modified: scummvm/trunk/dists/msvc8/create_msvc8.bat
===================================================================
--- scummvm/trunk/dists/msvc8/create_msvc8.bat 2009-11-04 04:27:31 UTC (rev 45649)
+++ scummvm/trunk/dists/msvc8/create_msvc8.bat 2009-11-04 08:05:12 UTC (rev 45650)
@@ -5,9 +5,14 @@
if not exist create_msvc.exe goto no_tool
-choice /m "Do you want to enable all engines? "
-if errorlevel 2 goto normal_build
-if errorlevel 1 goto all_engines
+:question
+echo.
+set /p batchanswer="Enable (S)table engines only, or (A)ll engines? (S/A)"
+if "%batchanswer%"=="s" goto stable
+if "%batchanswer%"=="S" goto stable
+if "%batchanswer%"=="a" goto all
+if "%batchanswer%"=="A" goto all
+goto question
:no_tool
echo create_msvc.exe not found in the current folder.
@@ -15,14 +20,13 @@
echo folder
goto done
-:all_engines
-echo Creating project files with all engines enabled
+:all
+echo Creating project files with all engines enabled (stable and unstable)
create_msvc ..\.. --enable-all-engines --msvc-version 8
goto done
-:normal_build
-echo Creating normal project files, with only the stable
-echo engines enabled
+:stable
+echo Creating normal project files, with only the stable engines enabled
create_msvc ..\.. --msvc-version 8
goto done
Modified: scummvm/trunk/dists/msvc9/create_msvc9.bat
===================================================================
--- scummvm/trunk/dists/msvc9/create_msvc9.bat 2009-11-04 04:27:31 UTC (rev 45649)
+++ scummvm/trunk/dists/msvc9/create_msvc9.bat 2009-11-04 08:05:12 UTC (rev 45650)
@@ -5,9 +5,14 @@
if not exist create_msvc.exe goto no_tool
-choice /m "Do you want to enable all engines? "
-if errorlevel 2 goto normal_build
-if errorlevel 1 goto all_engines
+:question
+echo.
+set /p batchanswer="Enable (S)table engines only, or (A)ll engines? (S/A)"
+if "%batchanswer%"=="s" goto stable
+if "%batchanswer%"=="S" goto stable
+if "%batchanswer%"=="a" goto all
+if "%batchanswer%"=="A" goto all
+goto question
:no_tool
echo create_msvc.exe not found in the current folder.
@@ -15,14 +20,13 @@
echo folder
goto done
-:all_engines
-echo Creating project files with all engines enabled
+:all
+echo Creating project files with all engines enabled (stable and unstable)
create_msvc ..\.. --enable-all-engines --msvc-version 9
goto done
-:normal_build
-echo Creating normal project files, with only the stable
-echo engines enabled
+:stable
+echo Creating normal project files, with only the stable engines enabled
create_msvc ..\.. --msvc-version 9
goto done
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list