]> granicus.if.org Git - curl/commitdiff
build-openssl.bat: Added check for OpenSSL source directory
authorSteve Holme <steve_holme@hotmail.com>
Tue, 20 May 2014 06:09:57 +0000 (07:09 +0100)
committerSteve Holme <steve_holme@hotmail.com>
Mon, 19 May 2014 23:46:28 +0000 (00:46 +0100)
projects/build-openssl.bat

index 4395f83cac86e0cd4c0e966a8427330c45038119..66c8c9a04d6c5487045193a2b5d9dd4de543a8b5 100644 (file)
@@ -104,6 +104,9 @@ rem ***************************************************************************
 
   rem Check we have Visual Studio installed
   if not exist "%PF%\%VC_PATH%" goto novc
+\r
+  rem Check the start directory exists\r
+  if not exist "%START_DIR%" goto noopenssl\r
 
 :configure
   if "%BUILD_PLATFORM%" == "" (
@@ -282,7 +285,7 @@ rem ***************************************************************************
   echo.
   echo Other:
   echo.
-  echo directory - Specifies the openssl directory
+  echo directory - Specifies the OpenSSL source directory
   goto error
 
 :unknown
@@ -305,11 +308,16 @@ rem ***************************************************************************
   echo Error: %VC_DESC% is not installed
   goto error
 
-:nox64
-  echo.
-  echo Error: %VC_DESC% does not support 64-bit builds
-  goto error
-
+:nox64\r
+  echo.\r
+  echo Error: %VC_DESC% does not support 64-bit builds\r
+  goto error\r
+\r
+:noopenssl\r
+  echo.\r
+  echo Error: Cannot locate OpenSSL source directory\r
+  goto error\r
+\r
 :error
   if "%OS%" == "Windows_NT" endlocal
   exit /B 1