diff options
author | Filippos Karapetis | 2009-11-04 08:05:12 +0000 |
---|---|---|
committer | Filippos Karapetis | 2009-11-04 08:05:12 +0000 |
commit | f45a1a5a0b3cc3e343448659c60973a6a2e95a7f (patch) | |
tree | c1e90adce9b9467e8ef4b836a720423d3dda19d9 | |
parent | f147fbb93672b3490b6265cf5f912ef23799c907 (diff) | |
download | scummvm-rg350-f45a1a5a0b3cc3e343448659c60973a6a2e95a7f.tar.gz scummvm-rg350-f45a1a5a0b3cc3e343448659c60973a6a2e95a7f.tar.bz2 scummvm-rg350-f45a1a5a0b3cc3e343448659c60973a6a2e95a7f.zip |
Provide compatibility with 2000/XP, where the "choice" command is not available, and made the prompt more verbose
svn-id: r45650
-rw-r--r-- | dists/msvc8/create_msvc8.bat | 20 | ||||
-rw-r--r-- | dists/msvc9/create_msvc9.bat | 20 |
2 files changed, 24 insertions, 16 deletions
diff --git a/dists/msvc8/create_msvc8.bat b/dists/msvc8/create_msvc8.bat index dcd6e64ddf..c1f18cb526 100644 --- a/dists/msvc8/create_msvc8.bat +++ b/dists/msvc8/create_msvc8.bat @@ -5,9 +5,14 @@ echo. 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 You need to build it first and copy it in this 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 diff --git a/dists/msvc9/create_msvc9.bat b/dists/msvc9/create_msvc9.bat index 25af270ad9..9815d75c56 100644 --- a/dists/msvc9/create_msvc9.bat +++ b/dists/msvc9/create_msvc9.bat @@ -5,9 +5,14 @@ echo. 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 You need to build it first and copy it in this 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 |