X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Fpharext%2FTask%2FPeclFixup.php;h=b237771055c51cf344d9397caa26591c0cf5ea56;hb=337e76964be2ed6724633ac477affc3a28426c97;hp=08a1d942eaa7c7aabb5c078d67f46f81fa6420f1;hpb=23b4f263e68ae8d0a34292ed6215350483fe8451;p=pharext%2Fpharext diff --git a/src/pharext/Task/PeclFixup.php b/src/pharext/Task/PeclFixup.php index 08a1d94..b237771 100644 --- a/src/pharext/Task/PeclFixup.php +++ b/src/pharext/Task/PeclFixup.php @@ -28,6 +28,9 @@ class PeclFixup implements Task * @throws \pahrext\Exception */ public function run($verbose = false) { + if ($verbose !== false) { + printf("Sanitizing PECL dir ...\n"); + } $dirs = glob("{$this->source}/*", GLOB_ONLYDIR); $files = array_diff(glob("{$this->source}/*"), $dirs); @@ -38,6 +41,9 @@ class PeclFixup implements Task $dest = current($dirs); foreach ($files as $file) { + if ($verbose) { + printf("Moving %s into %s ...\n", basename($file), basename($dest)); + } if (!rename($file, "$dest/" . basename($file))) { throw new Exception; }