[nautilus/wip/csoriano/uncrustify: 1/5] f



commit efb88eaf2267f18f9b9f3d4256c1fbfeba8d13f7
Author: Carlos Soriano <csoriano gnome org>
Date:   Mon Aug 29 18:03:27 2016 +0200

    f

 data/run-uncrustify.sh |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/data/run-uncrustify.sh b/data/run-uncrustify.sh
index 17c8c00..b023a64 100755
--- a/data/run-uncrustify.sh
+++ b/data/run-uncrustify.sh
@@ -6,10 +6,8 @@ then
         for FILE in $(find $DIR -name "*.c")
         do
             # Aligning prototypes is not working yet, so avoid headers
-            #uncrustify -c kr-gnome-indent.cfg --no-backup $(find $DIR -name "*.[ch]")
-            echo $FILE
             uncrustify -c uncrustify.cfg --no-backup $FILE
-            ./lineup-parameters $FILE > $FILE.temp && cat $FILE.temp > $FILE && rm -f $FILE.temp
+            ./lineup-parameters $FILE > $FILE.temp && echo "$(<$FILE)" > $FILE && rm -f $FILE.temp
        done
     done
 else


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]