ardupilot/Tools/CodeStyle/ardupilot-astyle.sh

10 lines
171 B
Bash
Raw Normal View History

#!/bin/sh
2019-01-23 00:08:01 -04:00
if [[ "$OSTYPE" == "darwin"* ]]; then
DIR=$(dirname $(greadlink -f $0))
else
DIR=$(dirname $(readlink -f $0))
fi
astyle --options="${DIR}"/astylerc $*