]> code.delx.au - comingnext/blobdiff - build.pl
added second calendar to debug.js
[comingnext] / build.pl
index fc47d5749a59af34bfeeca461a22d312209b9a79..eb1e256d882d04f58fa86581209627901fef8645 100755 (executable)
--- a/build.pl
+++ b/build.pl
@@ -1,6 +1,6 @@
 #!/usr/bin/perl
 
-my $version = "1.33";
+my $version = "1.37";
 
 use warnings;
 use strict;
@@ -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);
 }