3 for execname in gnuindent gindent indent; do
4 version=`$execname --version 2>/dev/null`
5 if test "x$version" != "x"; then
11 if test -z $INDENT; then
12 echo "GStreamer git pre-commit hook:"
13 echo "Did not find GNU indent, please install it before continuing."
17 case `$INDENT --version` in
21 echo "Did not find GNU indent, please install it before continuing."
22 echo "(Found $INDENT, but it doesn't seem to be GNU indent)"
27 # Run twice. GNU indent isn't idempotent
32 --case-brace-indentation0 \
34 --braces-after-struct-decl-line \
38 --dont-line-up-parentheses \
39 --continuation-indentation4 \
43 --leave-preprocessor-space \