* no support for static support library builds; unclear if that is a
requirement; if so: taking PCRE as an example, we'd need to detect that it
is static and then turn on PCRE_STATIC for the libhttpd build
-* build/cpR_noreplace.pl doesn't declare what version of Perl is required
- and doesn't work with File::Path that is missing make_path
Generally:
use File::Basename;
use File::Copy;
use File::Find;
-use File::Path qw(make_path);
+use File::Path qw(mkpath);
+
+require 5.010;
my $srcdir;
my $destdir;
# Create it.
my $dir = dirname($destfile);
if (! -e $dir) {
- make_path($dir) or die "Failed to create directory $dir: $!";
+ mkpath($dir) or die "Failed to create directory $dir: $!";
}
copy($File::Find::name, $destfile) or die "Copy $File::Find::name->$destfile failed: $!";
}