mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 07:13:56 -04:00
Adding bash formatting script using astyle.
This commit is contained in:
parent
63efe302f2
commit
fc12113167
11
Tools/scripts/format.sh
Executable file
11
Tools/scripts/format.sh
Executable file
@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
function format {
|
||||
DIR=$1
|
||||
find $DIR -regex ".*\.\(h\|cpp\|pde\)" -exec astyle {} \;
|
||||
find $DIR -regex ".*\.\(h\|cpp\|pde\)" -exec rm {}.orig \;
|
||||
}
|
||||
|
||||
format apo
|
||||
format ArduRover
|
||||
format ArduBoat
|
||||
format libraries/APO
|
Loading…
Reference in New Issue
Block a user