code-format.py 469 B

123456789101112131415
  1. #!/usr/bin/env python3
  2. import os
  3. print("Formatting src")
  4. os.system('astyle --options=code-format.cfg --recursive "../src/*.c,*.h"')
  5. print("\nFormatting demos")
  6. os.system('astyle --options=code-format.cfg --recursive "../demos/*.c,*.h"')
  7. print("\nFormatting examples")
  8. os.system('astyle --options=code-format.cfg --recursive "../examples/*.c,*.h"')
  9. print("\nFormatting tests")
  10. os.system('astyle --options=code-format.cfg --recursive "../tests/src/test_cases/*.c"')