Changeset: 583900019f21 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=583900019f21
Modified Files:
testing/listexports.py.in
Branch: Aug2011
Log Message:
Don't process the same file twice.
On Windows, selected .h files are copied to the build directory. We
don't want to process those files twice. Note that we assume file
names are unique.
diffs (21 lines):
diff --git a/testing/listexports.py.in b/testing/listexports.py.in
--- a/testing/listexports.py.in
+++ b/testing/listexports.py.in
@@ -52,14 +52,16 @@ def extract(f):
def findfiles(dirlist, skipfiles = [], skipdirs = []):
decls = []
+ done = {}
for d in dirlist:
for root, dirs, files in os.walk(d):
for d in skipdirs:
if d in dirs:
dirs.remove(d)
for f in files:
- if (f.endswith('.c') or f.endswith('.h')) and f not in
skipfiles:
+ if not done.has_key(f) and (f.endswith('.c') or
f.endswith('.h')) and f not in skipfiles:
decls.extend(extract(os.path.join(root, f)))
+ done[f] = True
decls.sort()
names, decls = zip(*decls)
return decls
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list