aboutsummaryrefslogtreecommitdiff
path: root/projects
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2014-05-20 07:09:57 +0100
committerSteve Holme <steve_holme@hotmail.com>2014-05-20 00:46:28 +0100
commit274f932311a016482ee639a8d642ac0833671359 (patch)
tree601d82477d0789bd4cb3874d726e6457f4ef997d /projects
parent0c467c9cc7e0dbfd53f53a03405aba7294cb32b5 (diff)
build-openssl.bat: Added check for OpenSSL source directory
Diffstat (limited to 'projects')
-rw-r--r--projects/build-openssl.bat20
1 files changed, 14 insertions, 6 deletions
diff --git a/projects/build-openssl.bat b/projects/build-openssl.bat
index 4395f83ca..66c8c9a04 100644
--- a/projects/build-openssl.bat
+++ b/projects/build-openssl.bat
@@ -104,6 +104,9 @@ rem ***************************************************************************
rem Check we have Visual Studio installed
if not exist "%PF%\%VC_PATH%" goto novc
+
+ rem Check the start directory exists
+ if not exist "%START_DIR%" goto noopenssl
: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
+ echo.
+ echo Error: %VC_DESC% does not support 64-bit builds
+ goto error
+
+:noopenssl
+ echo.
+ echo Error: Cannot locate OpenSSL source directory
+ goto error
+
:error
if "%OS%" == "Windows_NT" endlocal
exit /B 1