ardupilot/Tools/scripts/format.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
287 B
Bash
Raw Normal View History

#!/usr/bin/env 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