|
243 |
def add_scratch_programs(bld): |
243 |
def add_scratch_programs(bld): |
244 |
all_modules = [mod[len("ns3-"):] for mod in bld.env()['NS3_MODULES']] |
244 |
all_modules = [mod[len("ns3-"):] for mod in bld.env()['NS3_MODULES']] |
245 |
for filename in os.listdir("scratch"): |
245 |
for filename in os.listdir("scratch"): |
246 |
if os.path.isdir(os.path.join("scratch", filename)): |
246 |
if filename.startswith('.svn') or name.startswith('CVS'): |
|
|
247 |
continue |
248 |
elif os.path.isdir(os.path.join("scratch", filename)): |
247 |
obj = bld.create_ns3_program(filename, all_modules) |
249 |
obj = bld.create_ns3_program(filename, all_modules) |
248 |
obj.path = obj.path.find_dir('scratch') |
250 |
obj.path = obj.path.find_dir('scratch') |
249 |
obj.find_sources_in_dirs(filename) |
251 |
obj.find_sources_in_dirs(filename) |
|
631 |
elif os.path.isdir(srcname): |
633 |
elif os.path.isdir(srcname): |
632 |
if name in excludes: |
634 |
if name in excludes: |
633 |
continue |
635 |
continue |
634 |
elif name.startswith('.') or name.startswith(',,') or name.startswith('++'): |
636 |
elif name.startswith('.') or name.startswith(',,') or name.startswith('++') or name.startswith('.svn') or name.startswith('CVS'): |
635 |
continue |
637 |
continue |
636 |
elif name == build_dir: |
638 |
elif name == build_dir: |
637 |
continue |
639 |
continue |