projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee93c80
)
gst-indent: Run indent twice. Once is not idempotent, twice seems to be.
author
Jan Schmidt
<jan@centricular.com>
Sat, 18 Oct 2014 06:27:04 +0000
(17:27 +1100)
committer
Jan Schmidt
<jan@centricular.com>
Mon, 20 Oct 2014 12:55:47 +0000
(23:55 +1100)
tools/gst-indent
patch
|
blob
|
history
diff --git
a/tools/gst-indent
b/tools/gst-indent
index
9309ed3
..
e75338b
100755
(executable)
--- 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