summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2010-12-22 15:12:18 -0500
committerEric S. Raymond <esr@thyrsus.com>2010-12-22 15:12:18 -0500
commit5dadc49d86870a8ae82637c998fe1c515f2b9cba (patch)
tree492843d4bfa1aa7301e5964c7fb1d053bb22f0d4
parentc5a14e551cc8dc9389c78dc351195847559b306b (diff)
downloaddeheader-5dadc49d86870a8ae82637c998fe1c515f2b9cba.tar.gz
deheader-5dadc49d86870a8ae82637c998fe1c515f2b9cba.tar.bz2
deheader-5dadc49d86870a8ae82637c998fe1c515f2b9cba.tar.xz
deheader-5dadc49d86870a8ae82637c998fe1c515f2b9cba.zip
Fix implementation of the exclude option.
-rwxr-xr-xdeheader5
1 files changed, 4 insertions, 1 deletions
diff --git a/deheader b/deheader
index a52e401..934b382 100755
--- a/deheader
+++ b/deheader
@@ -1172,7 +1172,10 @@ class InclusionMap:
dirs = filter(lambda x: not x.startswith("."), dirs)
for name in files:
path = os.path.join(root, name)
- if InclusionMap.c_source(path):
+ if excludes and excludes.search(path):
+ if verbose > 1:
+ print "deheader: %s excluded" % root
+ elif InclusionMap.c_source(path):
self.files.append(path)
self.depends_on = {}
self.requires = {}