From 404360f261ef56b478228caf8f5371ddbe6feaf2 Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Sun, 24 May 2015 15:38:39 +0200 Subject: [PATCH] pick up sasl auth plugins if there was any in the deps --- win32/build/mkdist.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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)) { -- 2.50.1