]> granicus.if.org Git - apache/commitdiff
works with (Strawberry) Perl 5.010 from 2009, so require that version; move to older...
authorJeff Trawick <trawick@apache.org>
Fri, 13 Sep 2013 00:01:21 +0000 (00:01 +0000)
committerJeff Trawick <trawick@apache.org>
Fri, 13 Sep 2013 00:01:21 +0000 (00:01 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1522747 13f79535-47bb-0310-9956-ffa450edef68

README.cmake
build/cpR_noreplace.pl

index d5233ea890ac80703d75839764a5a1ba62465e2f..09a4d038cd67062faf177cff404d7bfface8df3a 100644 (file)
@@ -278,8 +278,6 @@ Known Bugs and Limitations
 * 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:
 
index 03f904ba521d700ca82c7721cb473b90b07034ed..054f572e362ba7a6e376a24b3a1d3d8b1048410e 100644 (file)
@@ -19,7 +19,9 @@ use strict;
 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;
@@ -42,7 +44,7 @@ sub process_file {
             # 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: $!";
         }