# HG changeset patch # User Shabe Razvi # Date 1272474165 -3600 # Node ID 64899060ea4db1e50891176d0cf823e387cc14b4 # Parent 73dce18476a0d1428f72a58342e726884ce0fad5 Improve exclusion list generation for tools build diff -r 73dce18476a0 -r 64899060ea4d common/build.xml --- a/common/build.xml Wed Apr 28 17:18:05 2010 +0100 +++ b/common/build.xml Wed Apr 28 18:02:45 2010 +0100 @@ -497,7 +497,7 @@ - + diff -r 73dce18476a0 -r 64899060ea4d common/tools/listdir.py --- a/common/tools/listdir.py Wed Apr 28 17:18:05 2010 +0100 +++ b/common/tools/listdir.py Wed Apr 28 18:02:45 2010 +0100 @@ -26,9 +26,9 @@ if(len(sys.argv)>2): x_dirs = string.lower(sys.argv[2]) exclude_dirs = re.split(',', x_dirs) - scandir(directory, exclude_dirs,directory) + scandir(directory, exclude_dirs) -def scandir(top, exclude_dirs,directory): +def scandir(top, exclude_dirs): fixpath = re.compile('\\\\') fixroot = re.compile('^%s\\\\' % top) for root, dirs, files in os.walk(top, topdown=True): @@ -38,6 +38,6 @@ for name in files: filename = os.path.join(root, name) fn = string.lower(fixpath.sub('/',fixroot.sub('',filename))) - print fn.strip(directory) + print top+"/"+fn main() diff -r 73dce18476a0 -r 64899060ea4d sf-tools/build.xml --- a/sf-tools/build.xml Wed Apr 28 17:18:05 2010 +0100 +++ b/sf-tools/build.xml Wed Apr 28 18:02:45 2010 +0100 @@ -48,8 +48,8 @@ - - + +