Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix vcbuild.bat, print error when an unrecognized option is encountered

  • Loading branch information...
commit c3f176222a990387b030898592bea3bbd1c43dd3 1 parent 2f759a7
Bert Belder piscisaureus authored
Showing with 21 additions and 20 deletions.
  1. +21 −20 vcbuild.bat
41 vcbuild.bat
View
@@ -26,26 +26,27 @@ set upload=
:next-arg
if "%1"=="" goto args-done
-if /i "%1"=="debug" set config=Debug&goto arg-ok
-if /i "%1"=="release" set config=Release&goto arg-ok
-if /i "%1"=="clean" set target=Clean&goto arg-ok
-if /i "%1"=="ia32" set target_arch=ia32&goto arg-ok
-if /i "%1"=="x86" set target_arch=ia32&goto arg-ok
-if /i "%1"=="x64" set target_arch=x64&goto arg-ok
-if /i "%1"=="noprojgen" set noprojgen=1&goto arg-ok
-if /i "%1"=="nobuild" set nobuild=1&goto arg-ok
-if /i "%1"=="nosign" set nosign=1&goto arg-ok
-if /i "%1"=="nosnapshot" set nosnapshot=1&goto arg-ok
-if /i "%1"=="test-uv" set test=test-uv&goto arg-ok
-if /i "%1"=="test-internet"set test=test-internet&goto arg-ok
-if /i "%1"=="test-pummel" set test=test-pummel&goto arg-ok
-if /i "%1"=="test-simple" set test=test-simple&goto arg-ok
-if /i "%1"=="test-message" set test=test-message&goto arg-ok
-if /i "%1"=="test-all" set test=test-all&goto arg-ok
-if /i "%1"=="test" set test=test&goto arg-ok
-if /i "%1"=="msi" set msi=1&goto arg-ok
-if /i "%1"=="upload" set upload=1&goto arg-ok
-
+if /i "%1"=="debug" set config=Debug&goto arg-ok
+if /i "%1"=="release" set config=Release&goto arg-ok
+if /i "%1"=="clean" set target=Clean&goto arg-ok
+if /i "%1"=="ia32" set target_arch=ia32&goto arg-ok
+if /i "%1"=="x86" set target_arch=ia32&goto arg-ok
+if /i "%1"=="x64" set target_arch=x64&goto arg-ok
+if /i "%1"=="noprojgen" set noprojgen=1&goto arg-ok
+if /i "%1"=="nobuild" set nobuild=1&goto arg-ok
+if /i "%1"=="nosign" set nosign=1&goto arg-ok
+if /i "%1"=="nosnapshot" set nosnapshot=1&goto arg-ok
+if /i "%1"=="test-uv" set test=test-uv&goto arg-ok
+if /i "%1"=="test-internet" set test=test-internet&goto arg-ok
+if /i "%1"=="test-pummel" set test=test-pummel&goto arg-ok
+if /i "%1"=="test-simple" set test=test-simple&goto arg-ok
+if /i "%1"=="test-message" set test=test-message&goto arg-ok
+if /i "%1"=="test-all" set test=test-all&goto arg-ok
+if /i "%1"=="test" set test=test&goto arg-ok
+if /i "%1"=="msi" set msi=1&goto arg-ok
+if /i "%1"=="upload" set upload=1&goto arg-ok
+
+echo Warning: ignoring invalid command line option `%1`.
:arg-ok
shift
Please sign in to comment.
Something went wrong with that request. Please try again.