ardupilot/Tools/CodeStyle/ardupilot-astyle.sh

11 lines
167 B
Bash
Executable File

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