]> granicus.if.org Git - curl/commitdiff
build-openssl.bat: Show syntax if required args are missing
authorJay Satiro <raysatiro@yahoo.com>
Sat, 25 Jul 2015 23:03:20 +0000 (19:03 -0400)
committerJay Satiro <raysatiro@yahoo.com>
Sat, 25 Jul 2015 23:03:20 +0000 (19:03 -0400)
projects/build-openssl.bat

index 207ecf8bf2d9f092ae7056e924f5f380be9ab07f..c1c3bbaf5b2e5082800f1c9eed65f1619bdab445 100644 (file)
@@ -25,6 +25,8 @@ rem ***************************************************************************
   rem Check we are running on a Windows NT derived OS
   if not "%OS%" == "Windows_NT" goto nodos
   setlocal
+  set VC_VER=
+  set BUILD_PLATFORM=
   
   rem Display the help
   if /i "%~1" == "" goto syntax
@@ -86,6 +88,10 @@ rem ***************************************************************************
   shift & goto parseArgs
 
 :prerequisites
+  rem Compiler and platform are required parameters.
+  if not defined VC_VER goto syntax
+  if not defined BUILD_PLATFORM goto syntax
+
   rem Default the start directory if one isn't specified
   if not defined START_DIR set START_DIR=..\..\openssl