summaryrefslogtreecommitdiff
path: root/clone_build_tree.pl
diff options
context:
space:
mode:
authorjohnsonb <johnsonb@a3e5c962-4219-0410-a828-e124f845ac39>2011-02-02 14:05:37 +0000
committerjohnsonb <johnsonb@a3e5c962-4219-0410-a828-e124f845ac39>2011-02-02 14:05:37 +0000
commit2a69563a9ac017ed1d76b37889a02560a7e568d6 (patch)
treeb25b9901737353df6330bc57b8352526a908a965 /clone_build_tree.pl
parentd964fbc6888443c5c55ab1c8de5abeed570f29e5 (diff)
downloadMPC-2a69563a9ac017ed1d76b37889a02560a7e568d6.tar.gz
ChangeLogTag:Wed Feb 2 14:01:25 UTC 2011 Brian Johnson <johnsonb@ociweb.com>
Diffstat (limited to 'clone_build_tree.pl')
-rwxr-xr-xclone_build_tree.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/clone_build_tree.pl b/clone_build_tree.pl
index c70ee525..88e1f2da 100755
--- a/clone_build_tree.pl
+++ b/clone_build_tree.pl
@@ -52,7 +52,6 @@ sub findCallback {
defined $exclude &&
/^$exclude\z/s && ($File::Find::prune = 1) ||
/^\.cvsignore\z/s && ($File::Find::prune = 1) ||
- /^build\z/s && ($File::Find::prune = 1) ||
/^\..*obj\z/s && ($File::Find::prune = 1) ||
/^Templates\.DB\z/s && ($File::Find::prune = 1) ||
/^Debug\z/s && ($File::Find::prune = 1) ||
@@ -523,6 +522,7 @@ $builddir = getcwd() . '/build' if (!defined $builddir);
if (index($builddir, getcwd()) == 0) {
$exclude = substr($builddir, length(getcwd()) + 1);
$exclude =~ s/([\+\-\\\$\[\]\(\)\.])/\\$1/g;
+ $exclude =~ s/.*?([^\/]+)$/$1/;
}
else {
$absolute = 1;