mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
04b46678a4
Most scripts/tools use non-portable `/bin/bash`, switch to environment agnostic `/usr/bin/env bash`.
14 lines
287 B
Bash
Executable File
14 lines
287 B
Bash
Executable File
#!/usr/bin/env bash
|
|
function format {
|
|
DIR=$1
|
|
find $DIR -regex ".*\.\(h\|cpp\|pde\)" -exec astyle {} \;
|
|
find $DIR -regex ".*\.\(h\|cpp\|pde\)" -exec rm -f {}.orig \;
|
|
}
|
|
|
|
format apo
|
|
format ArduRover
|
|
format ArduBoat
|
|
format libraries/APO
|
|
format libraries/AP_Common
|
|
format libraries/AP_GPS
|