CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
Ardupilot

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: Ardupilot/ardupilot
Path: blob/master/Tools/CodeStyle/ardupilot-astyle.sh
Views: 1798
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