ardupilot/Tools/CodeStyle/ardupilot-astyle.sh

11 lines
167 B
Bash
Raw Normal View History

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