handle symlink targets better
authorTony Cook <tony@develop-help.com>
Sun, 30 Jan 2011 11:50:11 +0000 (11:50 +0000)
committertony <tony@45cb6cf1-00bc-42d2-bb5a-07f51df49f94>
Sun, 30 Jan 2011 11:50:11 +0000 (11:50 +0000)
localinst.perl

index c52866e..cb9c2c3 100644 (file)
@@ -49,13 +49,13 @@ if ($perl ne '/usr/bin/perl') {
   }
 }
 
-system "cp -rf $dist/site/htdocs $instbase"
+system "cp -rf $dist/site/htdocs/* $instbase/htdocs"
   and die "Cannot copy htdocs";
-system "cp -rf $dist/site/templates $instbase"
+system "cp -rf $dist/site/templates/* $instbase/templates"
   and die "Cannot copy templates";
 system "cp -rf $dist/site/data $instbase"
   and die "Cannot copy data";
-system "cp -rf $dist/site/util $instbase";
+system "cp -rf $dist/site/util/ $instbase";
 
 print "Updating conf\n";
 # try to update Constants.pm