equal
deleted
inserted
replaced
313 return program |
313 return program |
314 |
314 |
315 def add_scratch_programs(bld): |
315 def add_scratch_programs(bld): |
316 all_modules = [mod[len("ns3-"):] for mod in bld.env()['NS3_MODULES']] |
316 all_modules = [mod[len("ns3-"):] for mod in bld.env()['NS3_MODULES']] |
317 for filename in os.listdir("scratch"): |
317 for filename in os.listdir("scratch"): |
|
318 if filename.startswith('.') or filename == 'CVS': |
|
319 continue |
318 if os.path.isdir(os.path.join("scratch", filename)): |
320 if os.path.isdir(os.path.join("scratch", filename)): |
319 obj = bld.create_ns3_program(filename, all_modules) |
321 obj = bld.create_ns3_program(filename, all_modules) |
320 obj.path = obj.path.find_dir('scratch') |
322 obj.path = obj.path.find_dir('scratch') |
321 obj.find_sources_in_dirs(filename) |
323 obj.find_sources_in_dirs(filename) |
322 obj.target = os.path.join(filename, filename) |
324 obj.target = os.path.join(filename, filename) |
620 linkto = os.readlink(srcname) |
622 linkto = os.readlink(srcname) |
621 os.symlink(linkto, dstname) |
623 os.symlink(linkto, dstname) |
622 elif os.path.isdir(srcname): |
624 elif os.path.isdir(srcname): |
623 if name in excludes: |
625 if name in excludes: |
624 continue |
626 continue |
625 elif name.startswith('.') or name.startswith(',,') or name.startswith('++'): |
627 elif name.startswith('.') or name.startswith(',,') or name.startswith('++') or name.startswith('CVS'): |
626 continue |
628 continue |
627 elif name == build_dir: |
629 elif name == build_dir: |
628 continue |
630 continue |
629 else: |
631 else: |
630 ## build_dir is not passed into the recursive |
632 ## build_dir is not passed into the recursive |