ardupilot/Tools/scripts/format.sh

14 lines
279 B
Bash
Raw Permalink Normal View History

#!/bin/bash
function format {
DIR=$1
find $DIR -regex ".*\.\(h\|cpp\|pde\)" -exec astyle {} \;
2011-10-28 15:43:43 -03:00
find $DIR -regex ".*\.\(h\|cpp\|pde\)" -exec rm -f {}.orig \;
}
format apo
format ArduRover
format ArduBoat
format libraries/APO
2011-10-28 15:43:43 -03:00
format libraries/AP_Common
2011-10-28 15:52:50 -03:00
format libraries/AP_GPS