summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/dist/dist.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/wiredtiger/dist/dist.py')
-rw-r--r--src/third_party/wiredtiger/dist/dist.py18
1 files changed, 13 insertions, 5 deletions
diff --git a/src/third_party/wiredtiger/dist/dist.py b/src/third_party/wiredtiger/dist/dist.py
index 7fe473c3abd..bd3f1b2b7e9 100644
--- a/src/third_party/wiredtiger/dist/dist.py
+++ b/src/third_party/wiredtiger/dist/dist.py
@@ -1,4 +1,4 @@
-import filecmp, glob, os, re, shutil
+import filecmp, fnmatch, glob, os, re, shutil
# source_files --
# Return a list of the WiredTiger source file names.
@@ -19,10 +19,12 @@ def all_c_files():
file_re = re.compile(r'^\w')
for line in glob.iglob('../src/*/*.[ci]'):
yield line
- for line in glob.iglob('../test/*/*.[ci]'):
- yield line
- for line in glob.iglob('../test/*/*/*.[ci]'):
- yield line
+ files = list()
+ for (dirpath, dirnames, filenames) in os.walk('../test'):
+ files += [os.path.join(dirpath, file) for file in filenames]
+ for file in files:
+ if fnmatch.fnmatch(file, '*.[ci]'):
+ yield file
# all_h_files --
# Return list of all WiredTiger C include file names.
@@ -31,6 +33,12 @@ def all_h_files():
for line in glob.iglob('../src/*/*.h'):
yield line
yield "../src/include/wiredtiger.in"
+ files = list()
+ for (dirpath, dirnames, filenames) in os.walk('../test'):
+ files += [os.path.join(dirpath, file) for file in filenames]
+ for file in files:
+ if fnmatch.fnmatch(file, '*.h'):
+ yield file
# source_dirs --
# Return a list of the WiredTiger source directory names.