px4-firmware/Tools/astyle/fix_code_style.sh

12 lines
194 B
Bash
Raw Normal View History

2015-08-22 17:04:51 -03:00
#!/bin/bash
2015-08-22 18:39:12 -03:00
if [[ $# -eq 0 ]] ; then
exit 0
fi
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
astyle \
--options=$DIR/astylerc \
--preserve-date \
$*