]> git.sesse.net Git - kdenlive/blobdiff - reindent.sh
More krazy code fixes
[kdenlive] / reindent.sh
index 53fe1ecb162f4c93ed15af9419ac6611e61ebb86..7de5a150f6e2be5c34758a487f0f7010f2e538f7 100755 (executable)
@@ -1,12 +1,19 @@
 #! /bin/sh
 
+FILES="`find -type f -wholename './src/*.cpp'` `find -type f -wholename './src/*.h'` `find -type f -wholename './renderer/*.cpp'` `find -type f -wholename './renderer/*.h'` `find -type f -wholename './plugins/*.cpp'` `find -type f -wholename './plugins/*.h'` `find -type f -wholename './thumbnailer/*.cpp'` `find -type f -wholename './thumbnailer/*.h'`"
+
+if [ $# -gt 0 ]
+then
+       FILES=$@
+fi
+
 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'`
+       ${FILES}
 
-echo -e "Delete .orig files (y/N) ?"
+echo -n "Delete .orig files (y/N) ? "
 read del
 
 if [ "x${del}" = "xy" ]