gst-indent: Run indent twice. Once is not idempotent, twice seems to be.

This commit is contained in:
Jan Schmidt 2014-10-18 17:27:04 +11:00
parent ee93c807e1
commit 8f4b4a9497

View file

@ -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