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
9astyle --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'`
14