Skip to content

Commit

Permalink
[tools] Cleanup example helper tools
Browse files Browse the repository at this point in the history
  • Loading branch information
salkinium committed Apr 4, 2020
1 parent 2c0173a commit 092287b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions tools/scripts/examples_cleanup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ find ${@:1} -name project.xml.log -delete
find ${@:1} -name SConstruct -delete
find ${@:1} -name Makefile -delete
find ${@:1} -name CMakeLists.txt -delete
find ${@:1} -name openocd.cfg -delete
find ${@:1} -name gdbinit -delete

find ${@:1} -type d -name modm -exec rm -rf "{}" \;
find ${@:1} -type d -name generated -exec rm -rf "{}" \;
find ${@:1} -type d -name build -exec rm -rf "{}" \;
find ${@:1} -type d -name build -exec rm -rf "{}" \;
4 changes: 2 additions & 2 deletions tools/scripts/examples_compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def build(project):
rcs = 0
for command in commands:
output = ["=" * 90, "Building: {} with {}".format(
path, "SCons" if "scons" in command else "CMake")]
path / "main.cpp", "SCons" if "scons" in command else "CMake")]
rc, ro = run(path, command)
rcs += rc
print("\n".join(output + [ro]))
Expand Down Expand Up @@ -85,4 +85,4 @@ def compile_examples(paths):


if __name__ == '__main__':
exit(compile_examples(sys.argv[1:]))
exit(compile_examples(sys.argv[1:]))

0 comments on commit 092287b

Please sign in to comment.