diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-09-07 19:17:42 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-09-07 19:17:42 +0400 |
commit | 115b25673832049b746835357d63d8d2dbee5229 (patch) | |
tree | ca36db0fe4063108ca5820e1d76ae0496fb88f15 /build_files/cmake/example_scripts/make_quicky.py | |
parent | e53bbc7ab7568e315dc3cf06dd5e989300c98786 (diff) |
ran through pep8 checker
Diffstat (limited to 'build_files/cmake/example_scripts/make_quicky.py')
-rwxr-xr-x | build_files/cmake/example_scripts/make_quicky.py | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/build_files/cmake/example_scripts/make_quicky.py b/build_files/cmake/example_scripts/make_quicky.py index 69f7604c8cc..d7c43f4b86e 100755 --- a/build_files/cmake/example_scripts/make_quicky.py +++ b/build_files/cmake/example_scripts/make_quicky.py @@ -20,6 +20,7 @@ # <pep8 compliant> + def print_help(targets): print("CMake quicky wrapper, no valid targets given.") print(" * targets can contain a subset of the full target name.") @@ -36,11 +37,11 @@ def print_help(targets): for t in targets: print(" %s" % t) print("...exiting") - + def main(): targets = set() - + # collect targets file = open("Makefile", "r") for line in file: @@ -54,13 +55,12 @@ def main(): line = line.split(":", 1)[0] - if "/" in line: # cmake terget options, dont need these + if "/" in line: # cmake terget options, dont need these continue targets.add(line) file.close() - # remove cmake targets bad = set([ "help", @@ -75,9 +75,8 @@ def main(): "depend", "cmake_check_build_system", ]) - - targets -= set(bad) + targets -= set(bad) # parse args targets = list(targets) @@ -106,7 +105,7 @@ def main(): print(" %s" % t) print("...aborting.") return - + # execute cmd = "make %s %s blender/fast" % (" ".join(args), " ".join(targets_new)) print("cmake building with targets: %s" % " ".join(targets_new)) |