From 64dc5e2d3ff061ffbc18593f2e14082acacd8474 Mon Sep 17 00:00:00 2001 From: Michael Prager Date: Sat, 17 Dec 2011 15:06:41 +0100 Subject: [PATCH] fixed build.pl to work properly on macos --- build.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build.pl b/build.pl index ff42ee7..073ecd5 100755 --- a/build.pl +++ b/build.pl @@ -67,9 +67,11 @@ sub copyrecursive { sub copy_files { my $targetdir = $File::Find::dir; $targetdir =~ s/^$copy_source/$copy_target/o; - mkpath( $targetdir ) if not -e $targetdir; + mkpath( $targetdir, 1 ) if not -d $targetdir; + return if -d $File::Find::name; my $targetfile = $File::Find::name; $targetfile =~ s/^$copy_source/$copy_target/o; + print "copy $targetfile\n"; copy($File::Find::name, $targetfile); } -- 2.39.2