]> git.sesse.net Git - kdenlive/commitdiff
new indentation fix script
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Mon, 3 Mar 2008 11:51:24 +0000 (11:51 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Mon, 3 Mar 2008 11:51:24 +0000 (11:51 +0000)
svn path=/branches/KDE4/; revision=1986

reindent.sh

index 8854f40287fb2c4e6cdd28ef4856f2b27f5a9f4e..47140d1d7b4578e08916ee2efa85a13e3cd2116b 100755 (executable)
@@ -1,7 +1,7 @@
 #! /bin/sh
 
-for i in `ls src/*.{cpp,h}`
-do
-       indent -kr -nut -pmt -ss -bad -bap -prs -bap -nbc -nce -cdb -fca $i
-       sed -e "s/} const const/}const/" -i $i
-done
\ No newline at end of file
+astyle --indent=spaces=4 --brackets=attach \
+       --indent-labels --unpad=paren \
+       --pad=oper --convert-tabs \
+       --indent-preprocessor \
+       `find -type f -wholename './src/*.cpp'` `find -type f -wholename './src/*.h'`
\ No newline at end of file