Add style rule

This commit is contained in:
Ludovic Rousseau 2012-06-12 14:36:12 +00:00
parent 42ed06af74
commit dec0c7ef0d

View File

@ -1,2 +1,9 @@
SUBDIRS = src SUBDIRS = src
style:
find . -name "*.[ch]" -exec perl -pi -e 's/[ \t]+$$//' {} \;
find . -name "*.[ch]" -exec astyle --formatted --mode=c --suffix=none \
--indent=spaces=2 --indent-switches --indent-preprocessor \
--keep-one-line-blocks --max-instatement-indent=60 \
--brackets=linux --pad-oper --unpad-paren --pad-header \
--align-pointer=name {} \;