mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 11:11:08 +00:00
gst-indent: Run indent twice. Once is not idempotent, twice seems to be.
This commit is contained in:
parent
ee93c807e1
commit
8f4b4a9497
1 changed files with 5 additions and 1 deletions
|
@ -23,6 +23,9 @@ case `$INDENT --version` in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# Run twice. GNU indent isn't idempotent
|
||||||
|
# when run once
|
||||||
|
for i in 1 2; do
|
||||||
$INDENT \
|
$INDENT \
|
||||||
--braces-on-if-line \
|
--braces-on-if-line \
|
||||||
--case-brace-indentation0 \
|
--case-brace-indentation0 \
|
||||||
|
@ -37,4 +40,5 @@ $INDENT \
|
||||||
--tab-size8 \
|
--tab-size8 \
|
||||||
--indent-level2 \
|
--indent-level2 \
|
||||||
--leave-preprocessor-space \
|
--leave-preprocessor-space \
|
||||||
$*
|
$* || exit $?
|
||||||
|
done
|
||||||
|
|
Loading…
Reference in a new issue