cvs: php-src /win32/build mkdist.php

From: Date: Wed, 01 Apr 2009 09:20:35 +0000
Subject: cvs: php-src /win32/build mkdist.php
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-56842@lists.php.net to get a copy of this message
kalle Wed Apr 1 09:20:35 2009 UTC Modified files: /php-src/win32/build mkdist.php Log: Fixed a few warnings from copy(): * If $item is empty then skip to next entry, this fixes the "The first argument cannot be a directory" warnings * If file does not exist then dont try to copy it http://cvs.php.net/viewvc.cgi/php-src/win32/build/mkdist.php?r1=1.22&r2=1.23&diff_format=u Index: php-src/win32/build/mkdist.php diff -u php-src/win32/build/mkdist.php:1.22 php-src/win32/build/mkdist.php:1.23 --- php-src/win32/build/mkdist.php:1.22 Mon Mar 30 14:32:20 2009 +++ php-src/win32/build/mkdist.php Wed Apr 1 09:20:35 2009 @@ -1,4 +1,4 @@ -<?php # $Id: mkdist.php,v 1.22 2009/03/30 14:32:20 kalle Exp $ +<?php # $Id: mkdist.php,v 1.23 2009/04/01 09:20:35 kalle Exp $ /* piece together a windows binary distro */ $build_dir = $argv[1]; @@ -112,6 +112,13 @@ global $is_debug, $dist_dir; foreach ($list as $item) { + if (empty($item)) { + continue; + } elseif (!is_file($source_dir . DIRECTORY_SEPARATOR . $item)) { + echo "WARNING: $item not found\n"; + continue; + } + echo "Copying $item from $source_dir to $dest_dir\n"; copy($source_dir . DIRECTORY_SEPARATOR . $item, $dest_dir . DIRECTORY_SEPARATOR . $item); if ($is_debug) {

« previous php.cvs (#56842) next »