commit | 8f4b4a9497ca1958ffcb607ca684a9b0f310a9dc | [log] [tgz] |
---|---|---|
author | Jan Schmidt <jan@centricular.com> | Sat Oct 18 17:27:04 2014 +1100 |
committer | Jan Schmidt <jan@centricular.com> | Mon Oct 20 23:55:47 2014 +1100 |
tree | 508a93d5b7df8c177a335aa0034c84ca2f327e1f | |
parent | ee93c807e1caa1701fb173f2e26da80913e6fd9d [diff] |
gst-indent: Run indent twice. Once is not idempotent, twice seems to be.
diff --git a/tools/gst-indent b/tools/gst-indent index 9309ed3..e75338b 100755 --- a/tools/gst-indent +++ b/tools/gst-indent
@@ -23,6 +23,9 @@ ;; 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 @@ --tab-size8 \ --indent-level2 \ --leave-preprocessor-space \ - $* + $* || exit $? +done