1#!/bin/sh 2 3# formatting script using the astyle tool 4# use -A2 (java style braces) 5# 4 space indents, convert tabs to spaces 6# 7# switches documented at http://astyle.sourceforge.net/astyle.html 8# 9# optional switches to note: 10# --add-braces will add { } for every conditional, including one liners 11 12astyle -A2 --align-pointer=name --indent=spaces=4 --indent-switches \ 13 --keep-one-line-blocks --pad-header --convert-tabs $@ 14