summaryrefslogtreecommitdiff
path: root/vcbuild.bat
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2012-02-12 21:04:03 +0100
committerBert Belder <bertbelder@gmail.com>2012-02-12 21:04:03 +0100
commitc3f176222a990387b030898592bea3bbd1c43dd3 (patch)
tree7046e99e71837eb485374cd246f5b5ff09f2a574 /vcbuild.bat
parent2f759a7090a15824a261e168221caa5109c86d44 (diff)
downloadandroid-node-v8-c3f176222a990387b030898592bea3bbd1c43dd3.tar.gz
android-node-v8-c3f176222a990387b030898592bea3bbd1c43dd3.tar.bz2
android-node-v8-c3f176222a990387b030898592bea3bbd1c43dd3.zip
Fix vcbuild.bat, print error when an unrecognized option is encountered
Diffstat (limited to 'vcbuild.bat')
-rw-r--r--vcbuild.bat41
1 files changed, 21 insertions, 20 deletions
diff --git a/vcbuild.bat b/vcbuild.bat
index 71b46cbf1a..f6d0fefe37 100644
--- a/vcbuild.bat
+++ b/vcbuild.bat
@@ -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