Compare commits

...

19 Commits

Author SHA1 Message Date
Anatol Belski
6b9f6bd7e5 prepare 2.0.4 2017-05-20 13:41:21 +02:00
Anatol Belski
f33ebdf261 Revert "recognize pgo stuff automatically if it's put into a subdir"
This reverts commit 010ae42362.
2017-05-20 13:05:51 +02:00
Anatol Belski
079185a0d6 Revert "move pgo tools setup and do setup paths, etc. conditionally"
This reverts commit ffa802812b.
2017-05-20 13:05:43 +02:00
Anatol Belski
59c082a8f4 sync namespace 2017-05-20 12:51:48 +02:00
Anatol Belski
078554f4a6 update namespaces 2017-05-20 12:35:56 +02:00
Anatol Belski
f6e507fb5e more precise namespace 2017-05-20 12:28:03 +02:00
Anatol Belski
14df5a921a ups, this shouldn't have been here 2017-05-17 10:40:22 +02:00
Anatol Belski
7cc9c62cae make us also recognize pure build tools installation, too 2017-05-17 10:29:37 +02:00
Anatol Belski
7370f1c5b0 there could have been no backup for the very first deps fetch 2017-05-13 23:09:23 +02:00
Anatol Belski
bb745349a9 reuse msys2 certs for curl 2017-05-12 22:18:00 +02:00
Anatol Belski
a2277e746d extend .gitignore 2017-05-11 15:29:53 +02:00
Anatol Belski
c6bcad86e9 add pwgen utility 2017-05-11 15:24:19 +02:00
Anatol Belski
af74264b8f extend help msg 2017-05-11 01:58:37 +02:00
Anatol Belski
37fa9bb323 add mysqli to bundled php 2017-05-11 01:51:18 +02:00
Anatol Belski
d5d2cf1c9d upgrade bundled php 2017-05-10 15:56:32 +02:00
Anatol Belski
ffa802812b move pgo tools setup and do setup paths, etc. conditionally 2017-05-09 16:56:54 +02:00
Anatol Belski
010ae42362 recognize pgo stuff automatically if it's put into a subdir 2017-05-09 15:55:11 +02:00
Anatol Belski
bcd7690d78 Revert back to 14 as lowest to avoid WTFs
The tools won't act as expected on lower than 7.0, so spare the false
bug reports.
2017-05-09 14:52:02 +02:00
Anatol Belski
52932ecdeb 2.0.4 next 2017-05-08 19:30:23 +02:00
21 changed files with 19 additions and 12 deletions

1
.gitignore vendored
View File

@@ -19,3 +19,4 @@ oracle
#pgo-build
#rmtools*
pgo
phpsdk-local.bat

View File

@@ -1 +1 @@
2.0.3
2.0.4

View File

@@ -1,3 +1,3 @@
@echo ofF
%~dp0php.exe -c %~dp0php.ini -d extension_dir=%~dp0ext %*
%~dp0php.exe -c %~dp0php.ini -d curl.cainfo=%PHP_SDK_ROOT_PATH%\msys2\usr\ssl\cert.pem -d extension_dir=%~dp0ext %*

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
bin/php/ext/php_mysqli.dll Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -4,6 +4,7 @@ extension=php_ftp.dll
extension=php_sqlite3.dll
extension=php_openssl.dll
extension=php_mbstring.dll
extension=php_mysqli.dll
memory_limit=1G
error_reporting=-1

Binary file not shown.

View File

@@ -187,7 +187,7 @@ try {
echo "\nConfiguration: " . Config::getCurrentBranchName() . "-$branch_data[crt]-$branch_data[arch]-$branch_data[stability]\n\n";
/* Let the dep manager to run the command. */
$dm = new SDK\Dependency\Manager(Config::getDepsLocalPath(), $branch_data["stability"], $branch_data["arch"]);
$dm = new SDK\Build\Dependency\Manager(Config::getDepsLocalPath(), $branch_data["stability"], $branch_data["arch"]);
switch ($cmd) {
default:
throw new Exception("Unknown command '$cmd'");

View File

@@ -24,7 +24,7 @@ if ""=="%PHP_SDK_VC:~2%" (
goto malformed_vc_string
)
set /a TMP_CHK=%PHP_SDK_VC:~2%
if 11 gtr %TMP_CHK% (
if 14 gtr %TMP_CHK% (
if "0"=="%TMP_CHK%" (
if not "0"=="%PHP_SDK_VC:~2%" (
set TMP_CHK=
@@ -79,11 +79,14 @@ if 15 gtr %PHP_SDK_VC_NUM% (
) else (
rem vc15 support only for now, could parse out and pass on later
for /f "tokens=1* delims=: " %%a in ('%~dp0\vswhere -nologo -version %PHP_SDK_VC_NUM% -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath -format text') do set PHP_SDK_VC_DIR=%%b\VC
set VSCMD_ARG_no_logo=nologo
if not exist "!PHP_SDK_VC_DIR!" (
for /f "tokens=1* delims=: " %%a in ('%~dp0\vswhere -nologo -version %PHP_SDK_VC_NUM% -products Microsoft.VisualStudio.Product.BuildTools -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath -format text') do set PHP_SDK_VC_DIR=%%b\VC
if not exist "!PHP_SDK_VC_DIR!" (
echo Could not determine '%PHP_SDK_VC%' directory
goto out_error;
)
)
set VSCMD_ARG_no_logo=nologo
)
set TMPKEY=

View File

@@ -1,6 +1,6 @@
<?php
namespace SDK\Dependency;
namespace SDK\Build\Dependency;
use SDK\Config;
use SDK\Exception;

View File

@@ -1,6 +1,6 @@
<?php
namespace SDK\Dependency;
namespace SDK\Build\Dependency;
use SDK\Config;
use SDK\Cache;
@@ -116,7 +116,9 @@ class Manager
/* save new series file, move the updated deps and backup the old ones, cleanup.*/
$msg .= "Updates performed successfully. " . PHP_EOL;
if ($backup) {
$msg .= "Old dependencies backed up into '$new_path'.";
if (isset($new_path)) {
$msg .= "Old dependencies backed up into '$new_path'.";
}
} else {
$msg .= "No backup was created.";
}

View File

@@ -1,6 +1,6 @@
<?php
namespace SDK\Dependency;
namespace SDK\Build\Dependency;
use SDK\Config;
use SDK\Exception;

View File

@@ -1,6 +1,6 @@
<?php
namespace SDK\Dependency;
namespace SDK\Build\Dependency;
use SDK\Config;
use SDK\Cache;

View File

@@ -2,7 +2,7 @@
namespace SDK;
use SDK\Dependency\Fetcher;
use SDK\Build\Dependency\Fetcher;
use SDK\Cache;
use SDK\Exception;

BIN
msys2/usr/bin/pwgen.exe Normal file

Binary file not shown.

View File

@@ -20,7 +20,7 @@ if "%ARCH%" equ "" goto help
goto skip_help
:help
echo Usage: phpsdk-starter -c ^<crt^> -a ^<arch^> [-t ^<task_script.bat^>]
echo Usage: phpsdk-starter -c ^<crt^> -a ^<arch^> [-t ^<task_script.bat^> [task script args]]
exit /b 0
:skip_help