diff options
author | Jan Schmidt <jan@centricular.com> | 2014-10-18 17:27:04 +1100 |
---|---|---|
committer | Jan Schmidt <jan@centricular.com> | 2014-10-20 23:55:47 +1100 |
commit | 8f4b4a9497ca1958ffcb607ca684a9b0f310a9dc (patch) | |
tree | 508a93d5b7df8c177a335aa0034c84ca2f327e1f | |
parent | ee93c807e1caa1701fb173f2e26da80913e6fd9d (diff) |
gst-indent: Run indent twice. Once is not idempotent, twice seems to be.
-rwxr-xr-x | tools/gst-indent | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/gst-indent b/tools/gst-indent index 9309ed38b5..e75338be0d 100755 --- a/tools/gst-indent +++ b/tools/gst-indent @@ -23,6 +23,9 @@ case `$INDENT --version` in ;; esac +# Run twice. GNU indent isn't idempotent +# when run once +for i in 1 2; do $INDENT \ --braces-on-if-line \ --case-brace-indentation0 \ @@ -37,4 +40,5 @@ $INDENT \ --tab-size8 \ --indent-level2 \ --leave-preprocessor-space \ - $* + $* || exit $? +done |