Skip to content

Commit

Permalink
cons: Extend SKIP_DIRS to match arbitrary path (#467)
Browse files Browse the repository at this point in the history
This fix allows to skip top level dirs and/or their subdirs such as
`OnlTools`, `asps`, etc.
  • Loading branch information
plexoos authored Dec 20, 2022
1 parent e35ae1d commit 3c88a26
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mgr/Construct
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ if ( defined($SKIP_DIRS) ) {
}

if ( $#items > -1){
if (! $item) {$items = join("|",@items);}
if (!$items) {$items = join("|",@items);}
else {$items .= "|" . join("|",@items);}
print "SKIP_DIRS is now: $#items $items\n";
}
Expand Down Expand Up @@ -399,12 +399,15 @@ if ($STAR_SYS !~ /x86_darwin/) {

#print "sysdirlist = @sysdirlist \n subdirs = @subdirs\n";

@skip_dirs = split(/\|/, $items);

foreach $dir(@sysdirlist , @subdirs ) {
if ( -d $dir or -l $dir ) {
# next if $param::include && $dir !~ /$param::include/o;
# next if $param::exclude && $dir =~ /$param::exclude/o;
print "Add dir : $dir\n" if $param::debug;
#push @Targets, $OBJ . "/" . $dir . "/Conscript";
next if grep($dir =~ m/$_/, @skip_dirs);
push @packages, $dir;
}
}
Expand Down

0 comments on commit 3c88a26

Please sign in to comment.