File indexing completed on 2023-05-30 09:06:58

0001 #!/bin/bash
0002 
0003 # apply kdelibs coding style to all c, cpp and header files in and below the current directory 
0004 # 
0005 # the coding style is defined in http://techbase.kde.org/Policies/Kdelibs_Coding_Style 
0006 # 
0007 # requirements: installed astyle 
0008 
0009 astyle --indent=spaces=4 --brackets=linux \
0010       --indent-labels --pad-oper --unpad-paren --pad-header \
0011       --keep-one-line-statements --convert-tabs \
0012       --indent-preprocessor \
0013       `find -type f -name '*.c' -or -name '*.cpp' -or -name '*.cc' -or -name '*.h'`