diff options
Diffstat (limited to 'clone_build_tree.pl')
-rwxr-xr-x | clone_build_tree.pl | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/clone_build_tree.pl b/clone_build_tree.pl index 3df26e82..bf0baa04 100755 --- a/clone_build_tree.pl +++ b/clone_build_tree.pl @@ -372,8 +372,14 @@ sub linkFiles { my($fullbuild) = "$builddir/$build"; ## Create all of the links for this build - print "Creating or updating in $fullbuild\n"; - mkpath($fullbuild, 0, $dmode); + if (-d $fullbuild) { + print "Updating $fullbuild\n"; + } + else { + print "Creating $fullbuild\n"; + mkpath($fullbuild, 0, $dmode); + } + if ($hardlink) { $status += hardlinkFiles($files, $fullbuild, $dmode, $startdir); } |