X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=tools%2Fgst-indent;h=a9b8bfe430ca2d2263965e2cc010186d46b5224d;hb=0c6f5b3e4c3dc55e684bca1e3fc9a2a9b74407b9;hp=e75338be0d03f5ad750d308eb39427e41c7d2f3e;hpb=8f4b4a9497ca1958ffcb607ca684a9b0f310a9dc;p=platform%2Fupstream%2Fgstreamer.git diff --git a/tools/gst-indent b/tools/gst-indent index e75338b..a9b8bfe 100755 --- a/tools/gst-indent +++ b/tools/gst-indent @@ -1,16 +1,17 @@ #!/bin/sh -version=`gnuindent --version 2>/dev/null` -if test "x$version" = "x"; then - version=`indent --version 2>/dev/null` - if test "x$version" = "x"; then - echo "GStreamer git pre-commit hook:" - echo "Did not find GNU indent, please install it before continuing." - exit 1 +for execname in gnuindent gindent indent; do + version=`$execname --version 2>/dev/null` + if test "x$version" != "x"; then + INDENT=$execname + break fi - INDENT=indent -else - INDENT=gnuindent +done + +if test -z $INDENT; then + echo "GStreamer git pre-commit hook:" + echo "Did not find GNU indent, please install it before continuing." + exit 1 fi case `$INDENT --version` in