diff options
-rwxr-xr-x | deheader | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1249,6 +1249,7 @@ class InclusionMap: else: print >>sys.stderr, "deheader: can't analyze %s" % root else: + sublist = [] for root, dirs, files in os.walk(root): dirs = filter(lambda x: not x.startswith("."), dirs) for name in files: @@ -1257,7 +1258,9 @@ class InclusionMap: if verbose > 1: print "deheader: %s excluded" % root elif InclusionMap.c_source(path): - self.files.append(path) + sublist.append(path) + sublist.sort() + self.files += sublist self.depends_on = {} self.requires = {} for sourcefile in self.files: |