this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Set exslt version

+24
+24
tools/rename-target
··· 1 + #!/usr/bin/env python3 2 + 3 + import argparse 4 + import os 5 + 6 + parser = argparse.ArgumentParser(description="Rename a CMake target.") 7 + 8 + parser.add_argument("old", help="the target to rename", type=str) 9 + parser.add_argument("new", help="the new target name", type=str) 10 + 11 + args = parser.parse_args() 12 + 13 + print(args.old) 14 + print(args.new) 15 + 16 + for root, subdirs, files in os.walk("."): 17 + with open(list_file_path, 'wb') as list_file: 18 + for filename in files: 19 + file_path = os.path.join(root, filename) 20 + 21 + 22 + with open(file_path, 'rb') as f: 23 + print("Parsing " + file_path) 24 + f_content = f.read()