From b8edc59edb7c71b3edcc9d51bf6f6d145e60df91 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Sat, 13 Mar 2004 15:17:30 +0000 Subject: [PATCH] adding gst-indent as a noinst tool Original commit message from CVS: adding gst-indent as a noinst tool --- ChangeLog | 6 ++++++ tools/Makefile.am | 3 +++ tools/gst-indent | 16 ++++++++++++++++ 3 files changed, 25 insertions(+) create mode 100755 tools/gst-indent diff --git a/ChangeLog b/ChangeLog index af1a65f152..dfb635d448 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-03-13 Thomas Vander Stichele + + * tools/gst-indent: + * tools/Makefile.am: + add our indentation style as a script + 2004-03-13 Thomas Vander Stichele * po/sr.po: diff --git a/tools/Makefile.am b/tools/Makefile.am index 1dcd80b6d0..c20e4b9ca8 100644 --- a/tools/Makefile.am +++ b/tools/Makefile.am @@ -153,3 +153,6 @@ EXTRA_DIST = \ -e s,gst-typefind,gst-typefind-@GST_MAJORMINOR@,g \ -e s,gst-xmllaunch,gst-xmllaunch-@GST_MAJORMINOR@,g \ $< >$@ + +# developer helper tools, not meant for installation +noinst_SCRIPTS = gst-indent diff --git a/tools/gst-indent b/tools/gst-indent new file mode 100755 index 0000000000..26e649661a --- /dev/null +++ b/tools/gst-indent @@ -0,0 +1,16 @@ +#!/bin/bash +indent \ + --braces-on-if-line \ + --blank-lines-after-declarations \ + --case-brace-indentation0 \ + --case-indentation2 \ + --braces-after-struct-decl-line \ + --line-length80 \ + --use-tabs \ + --cuddle-else \ + --dont-line-up-parentheses \ + --continuation-indentation4 \ + --honour-newlines \ + --tab-size8 \ + --indent-level2 \ + $*