[nautilus/wip/oholy/ci-style-check: 2/5] run-uncrustify.sh: Add missing --replace option



commit 001a1da01e578346b345ad56cedf223de6fc23b5
Author: Ondrej Holy <oholy redhat com>
Date:   Tue Feb 4 08:38:34 2020 +0100

    run-uncrustify.sh: Add missing --replace option
    
    uncrustify is being run with --no-backup option, which seems to be enough
    as per the man pages, but it obviously doesn't work on Fedora 31 as it just
    creates new files using ".uncrustify" suffix. Let's add also --replace
    option to make it work as intended.

 data/run-uncrustify.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/data/run-uncrustify.sh b/data/run-uncrustify.sh
index 2cd72492d..38a6a7c4a 100755
--- a/data/run-uncrustify.sh
+++ b/data/run-uncrustify.sh
@@ -20,7 +20,7 @@ do
     for FILE in $(find "$DIR" -name "*.c" -not -path "*/gtk/*")
     do
         # Aligning prototypes is not working yet, so avoid headers
-        "$UNCRUSTIFY" -c "$DATA/uncrustify.cfg" --no-backup "$FILE"
+        "$UNCRUSTIFY" -c "$DATA/uncrustify.cfg" --replace --no-backup "$FILE"
         "$DATA/lineup-parameters" "$FILE" > "$FILE.temp" && mv "$FILE.temp" "$FILE"
    done
 done


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