Browse Source

Tools: use greadlink for macos systems

master
Siddharth Purohit 6 years ago committed by Andrew Tridgell
parent
commit
ba7187e31b
  1. 5
      Tools/CodeStyle/ardupilot-astyle.sh

5
Tools/CodeStyle/ardupilot-astyle.sh

@ -1,6 +1,9 @@ @@ -1,6 +1,9 @@
#!/bin/sh
if [[ "$OSTYPE" == "darwin"* ]]; then
DIR=$(dirname $(greadlink -f $0))
else
DIR=$(dirname $(readlink -f $0))
fi
astyle --options="${DIR}"/astylerc $*

Loading…
Cancel
Save