1.1.11
by Jonathan Riddell
Import upstream version 4.8.80 |
1 |
#!/bin/bash
|
2 |
||
3 |
# apply kdelibs coding style to all c, cpp and header files in and below the current directory
|
|
4 |
#
|
|
5 |
# the coding style is defined in http://techbase.kde.org/Policies/Kdelibs_Coding_Style
|
|
6 |
#
|
|
7 |
# requirements: installed astyle
|
|
8 |
||
9 |
astyle --indent=spaces=4 --brackets=linux \ |
|
10 |
--indent-labels --pad-oper --unpad-paren --pad-header \
|
|
11 |
--keep-one-line-statements --convert-tabs \
|
|
12 |
--indent-preprocessor \
|
|
13 |
`find -type f -name '*.c' -or -name '*.cpp' -or -name '*.cc' -or -name '*.h'` |