Adding bash formatting script using astyle.

This commit is contained in:
James Goppert 2011-10-27 16:30:15 -04:00
parent 63efe302f2
commit fc12113167
2 changed files with 14 additions and 3 deletions

11
Tools/scripts/format.sh Executable file
View 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