diff options
author | Steve Dower <steve.dower@microsoft.com> | 2017-09-09 13:13:06 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-09 13:13:06 (GMT) |
commit | b84bcc48ae31c385fe480c08c05d95212ef7fcdc (patch) | |
tree | e05a3904af68a4e2149e4152b52ee2aacd46436b /PCbuild/prepare_ssl.bat | |
parent | efb1d0a3c001a6153211063ba439b9847aa03509 (diff) | |
download | cpython-b84bcc48ae31c385fe480c08c05d95212ef7fcdc.zip cpython-b84bcc48ae31c385fe480c08c05d95212ef7fcdc.tar.gz cpython-b84bcc48ae31c385fe480c08c05d95212ef7fcdc.tar.bz2 |
bpo-31392: Update SSL build for 1.1.0 (#3448)
Diffstat (limited to 'PCbuild/prepare_ssl.bat')
-rw-r--r-- | PCbuild/prepare_ssl.bat | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/PCbuild/prepare_ssl.bat b/PCbuild/prepare_ssl.bat index 1df5b8d..5a3de2d 100644 --- a/PCbuild/prepare_ssl.bat +++ b/PCbuild/prepare_ssl.bat @@ -23,6 +23,8 @@ setlocal if "%PCBUILD%"=="" (set PCBUILD=%~dp0) if "%EXTERNALS_DIR%"=="" (set EXTERNALS_DIR=%PCBUILD%\..\externals) +set OUT= +set SRC= set ORG_SETTING= :CheckOpts @@ -30,12 +32,19 @@ if "%~1"=="-h" shift & goto Usage if "%~1"=="--certificate" (set SigningCertificate=%~2) && shift && shift & goto CheckOpts if "%~1"=="-c" (set SigningCertificate=%~2) && shift && shift & goto CheckOpts if "%~1"=="--organization" (set ORG_SETTING=--organization "%~2") && shift && shift && goto CheckOpts +if "%~1"=="-i" (SET SRC=$~2) && shift && shift && goto CheckOpts +if "%~1"=="--in" (SET SRC=$~2) && shift && shift && goto CheckOpts +if "%~1"=="-o" (set OUT=$~2) && shift && shift && goto CheckOpts +if "%~1"=="--out" (set OUT=$~2) && shift && shift && goto CheckOpts if "%~1"=="" goto Build echo Unrecognized option: %1 goto Usage :Build +if not defined SRC (echo --in directory is required & exit /b 1) +if not defined OUT (echo --out directory is required & exit /b 1) + call "%PCBUILD%find_msbuild.bat" %MSBUILD% if ERRORLEVEL 1 (echo Cannot locate MSBuild.exe on PATH or as MSBUILD variable & exit /b 2) @@ -51,3 +60,4 @@ if "%PERL%" == "" (echo Cannot locate perl.exe on PATH or as PERL variable & exi if errorlevel 1 exit /b %MSBUILD% "%PCBUILD%openssl.vcxproj" /p:Configuration=Release /p:Platform=x64 if errorlevel 1 exit /b + |