Skip to content

Commit

Permalink
build-openssl.bat: Added check for Perl installation
Browse files Browse the repository at this point in the history
  • Loading branch information
captain-caveman2k committed Jan 16, 2015
1 parent 224cf1c commit 5f09947
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion projects/build-openssl.bat
Expand Up @@ -6,7 +6,7 @@ rem * / __| | | | |_) | |
rem * | (__| |_| | _ <| |___
rem * \___|\___/|_| \_\_____|
rem *
rem * Copyright (C) 2012 - 2014, Steve Holme, <steve_holme@hotmail.com>.
rem * Copyright (C) 2012 - 2015, Steve Holme, <steve_holme@hotmail.com>.
rem *
rem * This software is licensed as described in the file COPYING, which
rem * you should have received as part of this distribution. The terms
Expand Down Expand Up @@ -105,6 +105,14 @@ rem ***************************************************************************
rem Check we have Visual Studio installed
if not exist "%PF%\%VC_PATH%" goto novc

rem Check we have Perl installed
echo %PATH% | findstr /I /C:"\Perl" 1>nul
if errorlevel 1 (
if not exist "%SystemDrive%\Perl" (
if not exist "%SystemDrive%\Perl64" goto noperl
)
)

rem Check the start directory exists
if not exist "%START_DIR%" goto noopenssl

Expand Down Expand Up @@ -308,6 +316,11 @@ rem ***************************************************************************
echo Error: %VC_DESC% is not installed
goto error

:noperl
echo.
echo Error: Perl is not installed
goto error

:nox64
echo.
echo Error: %VC_DESC% does not support 64-bit builds
Expand Down

0 comments on commit 5f09947

Please sign in to comment.