File: format_source.sh

package info (click to toggle)
openrazer 2.9.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,176 kB
  • sloc: python: 9,377; ansic: 8,091; sh: 580; makefile: 179; xml: 141
file content (9 lines) | stat: -rwxr-xr-x 198 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
#!/bin/bash

set -ex

# C (astyle)
find driver/ -name "*.c" -o -name "*.h" | xargs astyle --style=linux -n

# Python (autopep8)
autopep8 --recursive --in-place --max-line-length 500 --ignore E402 .