From 263b226665520231429e4b6a2e3b3147e77618d5 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 27 May 2008 04:31:01 +0000 Subject: [PATCH] add gen_indent.pl git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8687 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- build/gen_indent.pl | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 build/gen_indent.pl diff --git a/build/gen_indent.pl b/build/gen_indent.pl new file mode 100644 index 0000000000..d1afda8cf6 --- /dev/null +++ b/build/gen_indent.pl @@ -0,0 +1,21 @@ +open O, ">.indent.pro"; +select O; + +while (<>) { + open I, $_; + while() { + if (/([\w\d]+_t)[\s\)]/) { + ##print "-T $1 "; + $h{$1}++; + } + } + close I; +} + +print "-brs -sai -npsl -di0 -br -ce -d0 -cli0 -npcs -nfc1 -ut -i4 -ts4 -l155 -cs "; + +foreach (keys %h) { + print "-T $_ "; +} + +close O;