]> Chaos Git - console/RCOMage.git/commitdiff
Add auto-remove trailing whitespaces to kakaroto-indent script
authorYouness Alaoui <kakaroto@kakaroto.homelinux.net>
Sun, 9 Jan 2011 14:27:32 +0000 (09:27 -0500)
committerYouness Alaoui <kakaroto@kakaroto.homelinux.net>
Sun, 9 Jan 2011 14:27:32 +0000 (09:27 -0500)
kakaroto-indent

index 247cbdc3b1054db0404852424964c165dc4cc139..74feb29b28b04f0e5f93f3fbe332c40e219d6881 100755 (executable)
@@ -54,6 +54,9 @@ BREAK_LONG_LINES=" \
        --break-after-boolean-operator"
 
 
-
+# Fix indentation
 indent $BLANKS $COMMENTS $STATEMENTS $DECLARATIONS $INDENTATION $BREAK_LONG_LINES *.[ch]
 
+# Remove all trailing whitespaces
+sed 's/[ \t]*$//' -i *.[ch]
+