|
1 | 1 | @echo on
|
2 | 2 |
|
3 |
| -if /i "%APPVEYOR%%GITHUB_ACTIONS%" equ "True" ( |
4 |
| - rem rmdir takes several minutes for large directories, rename instead |
5 |
| - if /i "%APPVEYOR%" equ "True" ( |
6 |
| - rmdir /s /q C:\cygwin >NUL 2>NUL |
7 |
| - if %errorlevel% neq 0 exit /b 3 |
8 |
| - rmdir /s /q C:\cygwin64 >NUL 2>NUL |
9 |
| - if %errorlevel% neq 0 exit /b 3 |
10 |
| - rmdir /s /q C:\mingw >NUL 2>NUL |
11 |
| - if %errorlevel% neq 0 exit /b 3 |
12 |
| - rmdir /s /q C:\mingw-w64 >NUL 2>NUL |
13 |
| - if %errorlevel% neq 0 exit /b 3 |
14 |
| - rmdir /s /q C:\msys64 >NUL 2>NUL |
15 |
| - if %errorlevel% neq 0 exit /b 3 |
16 |
| - ) else ( |
17 |
| - rename C:\cygwin C:\trash-cygwin |
18 |
| - if %errorlevel% neq 0 exit /b 3 |
19 |
| - rename C:\cygwin64 C:\trash-cygwin64 |
20 |
| - if %errorlevel% neq 0 exit /b 3 |
21 |
| - rename C:\mingw C:\trash-mingw |
22 |
| - if %errorlevel% neq 0 exit /b 3 |
23 |
| - rename C:\mingw-w64 C:\trash-mingw-w64 |
24 |
| - if %errorlevel% neq 0 exit /b 3 |
25 |
| - rename C:\msys64 C:\trash-msys64 |
26 |
| - if %errorlevel% neq 0 exit /b 3 |
27 |
| - ) |
28 |
| - rmdir /s /q c:\OpenSSL-Win32 >NUL 2>NUL |
| 3 | +if /i "%APPVEYOR%%GITHUB_ACTIONS%" neq "True" ( |
| 4 | + echo for CI only |
| 5 | + exit /b 3 |
| 6 | +) |
| 7 | + |
| 8 | +rem rmdir takes several minutes for large directories, rename instead |
| 9 | +if /i "%APPVEYOR%" equ "True" ( |
| 10 | + rmdir /s /q C:\cygwin >NUL 2>NUL |
| 11 | + if %errorlevel% neq 0 exit /b 3 |
| 12 | + rmdir /s /q C:\cygwin64 >NUL 2>NUL |
| 13 | + if %errorlevel% neq 0 exit /b 3 |
| 14 | + rmdir /s /q C:\mingw >NUL 2>NUL |
29 | 15 | if %errorlevel% neq 0 exit /b 3
|
30 |
| - rmdir /s /q c:\OpenSSL-Win64 >NUL 2>NUL |
| 16 | + rmdir /s /q C:\mingw-w64 >NUL 2>NUL |
| 17 | + if %errorlevel% neq 0 exit /b 3 |
| 18 | + rmdir /s /q C:\msys64 >NUL 2>NUL |
| 19 | + if %errorlevel% neq 0 exit /b 3 |
| 20 | +) else ( |
| 21 | + rename C:\cygwin C:\trash-cygwin |
31 | 22 | if %errorlevel% neq 0 exit /b 3
|
32 |
| - rmdir /s /q c:\OpenSSL-v11-Win32 >NUL 2>NUL |
| 23 | + rename C:\cygwin64 C:\trash-cygwin64 |
33 | 24 | if %errorlevel% neq 0 exit /b 3
|
34 |
| - rmdir /s /q c:\OpenSSL-v11-Win64 >NUL 2>NUL |
| 25 | + rename C:\mingw C:\trash-mingw |
35 | 26 | if %errorlevel% neq 0 exit /b 3
|
36 |
| - del /f /q C:\Windows\System32\libcrypto-1_1-x64.dll >NUL 2>NUL |
| 27 | + rename C:\mingw-w64 C:\trash-mingw-w64 |
37 | 28 | if %errorlevel% neq 0 exit /b 3
|
38 |
| - del /f /q C:\Windows\System32\libssl-1_1-x64.dll >NUL 2>NUL |
| 29 | + rename C:\msys64 C:\trash-msys64 |
39 | 30 | if %errorlevel% neq 0 exit /b 3
|
40 | 31 | )
|
| 32 | +rmdir /s /q c:\OpenSSL-Win32 >NUL 2>NUL |
| 33 | +if %errorlevel% neq 0 exit /b 3 |
| 34 | +rmdir /s /q c:\OpenSSL-Win64 >NUL 2>NUL |
| 35 | +if %errorlevel% neq 0 exit /b 3 |
| 36 | +rmdir /s /q c:\OpenSSL-v11-Win32 >NUL 2>NUL |
| 37 | +if %errorlevel% neq 0 exit /b 3 |
| 38 | +rmdir /s /q c:\OpenSSL-v11-Win64 >NUL 2>NUL |
| 39 | +if %errorlevel% neq 0 exit /b 3 |
| 40 | +del /f /q C:\Windows\System32\libcrypto-1_1-x64.dll >NUL 2>NUL |
| 41 | +if %errorlevel% neq 0 exit /b 3 |
| 42 | +del /f /q C:\Windows\System32\libssl-1_1-x64.dll >NUL 2>NUL |
| 43 | +if %errorlevel% neq 0 exit /b 3 |
41 | 44 |
|
42 | 45 | if /i "%APPVEYOR_REPO_BRANCH:~0,4%" equ "php-" (
|
43 | 46 | set BRANCH=%APPVEYOR_REPO_BRANCH:~4,3%
|
|
0 commit comments