ardupilot/Tools/scripts/format.sh
2011-10-27 16:30:15 -04:00

12 lines
225 B
Bash
Executable File

#!/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