summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsolenv/gbuild/filter-showIncludes.pl6
1 files changed, 6 insertions, 0 deletions
diff --git a/solenv/gbuild/filter-showIncludes.pl b/solenv/gbuild/filter-showIncludes.pl
index d7082a29c083..1ed3679b14e8 100755
--- a/solenv/gbuild/filter-showIncludes.pl
+++ b/solenv/gbuild/filter-showIncludes.pl
@@ -43,6 +43,11 @@ while ( <STDIN> ) {
chomp;
s/\\/\//g;
+
+ # skip system headers, i.e. everything not under source or build dirs
+ if ( /$ENV{'SRCDIR'}|$ENV{'OUTDIR'}|$ENV{'WORKDIR'}/ )
+ {
+
# X: -> /cygdrive/x/
s/^(.):/\/cygdrive\/\l\1/;
@@ -52,6 +57,7 @@ while ( <STDIN> ) {
$seen{$_} = 1;
print $OUT " \\\n $_";
}
+ }
}
else {
# skip the first line, it always just duplicates what is being