com php-src: pick up sasl auth plugins if there was any in the deps: win32/build/mkdist.php

From: Date: Sun, 24 May 2015 21:49:45 +0000
Subject: com php-src: pick up sasl auth plugins if there was any in the deps: win32/build/mkdist.php
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-86902@lists.php.net to get a copy of this message
Commit: 404360f261ef56b478228caf8f5371ddbe6feaf2 Author: Anatol Belski <ab@php.net> Sun, 24 May 2015 15:38:39 +0200 Parents: c63467fe6e92d664d6f51369be821c60d8eead6f Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=404360f261ef56b478228caf8f5371ddbe6feaf2 Log: pick up sasl auth plugins if there was any in the deps Changed paths: M win32/build/mkdist.php Diff: diff --git a/win32/build/mkdist.php b/win32/build/mkdist.php index 9e4422a..7b4c057 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)) {

« previous php.cvs (#86902) next »