diff options
| author | Anatol Belski <ab@php.net> | 2015-05-24 15:38:39 +0200 |
|---|---|---|
| committer | Anatol Belski <ab@php.net> | 2015-05-24 23:49:45 +0200 |
| commit | 404360f261ef56b478228caf8f5371ddbe6feaf2 (patch) | |
| tree | e9d9fa1702d5d50ee147f006fa1e3471705bcde4 | |
| parent | c63467fe6e92d664d6f51369be821c60d8eead6f (diff) | |
| download | php-git-404360f261ef56b478228caf8f5371ddbe6feaf2.tar.gz | |
pick up sasl auth plugins if there was any in the deps
| -rw-r--r-- | win32/build/mkdist.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/win32/build/mkdist.php b/win32/build/mkdist.php index 9e4422addc..7b4c057530 100644 --- a/win32/build/mkdist.php +++ b/win32/build/mkdist.php @@ -342,6 +342,22 @@ foreach ($ENCHANT_DLLS as $dll) { } } +$SASL_DLLS = $php_build_dir . "/bin/sasl2/sasl*.dll"; +$fls = glob($SASL_DLLS); +if (!empty($fls)) { + $sasl_dest_dir = "$dist_dir/sasl2"; + if (!file_exists($sasl_dest_dir) || !is_dir($sasl_dest_dir)) { + if (!mkdir("$sasl_dest_dir", 0777, true)) { + echo "WARNING: couldn't create '$sasl_dest_dir' for SASL2 auth plugins "; + } + } + foreach ($fls as $fl) { + if (!copy($fl, "$sasl_dest_dir/" . basename($fl))) { + echo "WARNING: couldn't copy $fl into the $sasl_dest_dir"; + } + } +} + /* and those for pecl */ foreach ($pecl_dll_deps as $dll) { if (in_array($dll, $extra_dll_deps)) { |
