]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add shell script to create options for indent.
authorMichael Jerris <mike@jerris.com>
Fri, 20 Jan 2006 00:25:53 +0000 (00:25 +0000)
committerMichael Jerris <mike@jerris.com>
Fri, 20 Jan 2006 00:25:53 +0000 (00:25 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@411 d0543943-73ff-0310-b7d9-9358b9ac24b2

indent_options.sh [new file with mode: 0644]

diff --git a/indent_options.sh b/indent_options.sh
new file mode 100644 (file)
index 0000000..4729769
--- /dev/null
@@ -0,0 +1,2 @@
+#!/bin/bash
+echo -n "-brs -npsl -di0 -br -ce -d0 -cli0 -npcs -nfc1 -ut -i4 -ts4 -l120 -cs -T size_t " && grep typedef src/include/*.h | grep switch_ | grep -v "\*\|{" | perl -ne '@l = split; $l[2] =~ s/;//g ; print "-T $l[2] "' && grep "} switch_" src/include/*.h | perl -ne '@l = split; $l[1] =~ s/;//g ; print " -T $l[1] "' > indent_options