Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Ardupilot
GitHub Repository: Ardupilot/ardupilot
Path: blob/master/Tools/CodeStyle/ardupilot-astyle.sh
9487 views
1
#!/usr/bin/env bash
2
3
if [ -z "$1" ]; then
4
printf "\nArguments missing, Usage: '$0 <files to style>'\n\n"
5
exit 1
6
fi
7
8
if [ $(uname) = "Darwin" ]; then
9
DIR=$(dirname $(greadlink -f $0))
10
else
11
DIR=$(dirname $(readlink -f $0))
12
fi
13
14
astyle --options="${DIR}"/astylerc $*
15
16