svn commit: samba r23598 - in branches/SAMBA_3_0/source: . script
jerry at samba.org
jerry at samba.org
Mon Jun 25 15:18:41 GMT 2007
Author: jerry
Date: 2007-06-25 15:18:41 +0000 (Mon, 25 Jun 2007)
New Revision: 23598
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=23598
Log:
Add script for running indent and remove .indent.pro file
Added:
branches/SAMBA_3_0/source/script/format_indent.sh
Removed:
branches/SAMBA_3_0/source/.indent.pro
Changeset:
Deleted: branches/SAMBA_3_0/source/.indent.pro
===================================================================
--- branches/SAMBA_3_0/source/.indent.pro 2007-06-25 14:40:59 UTC (rev 23597)
+++ branches/SAMBA_3_0/source/.indent.pro 2007-06-25 15:18:41 UTC (rev 23598)
@@ -1,30 +0,0 @@
--bad
--bap
--bbb
--br
--ce
--ut
--ts8
--i8
--di1
--brs
--npsl
--npcs
--prs
--bbo
--hnl
--bad
--bap
--bbb
--br
--ce
--ut
--ts8
--i8
--di1
--brs
--npsl
--npcs
--prs
--bbo
--hnl
Added: branches/SAMBA_3_0/source/script/format_indent.sh
===================================================================
--- branches/SAMBA_3_0/source/script/format_indent.sh 2007-06-25 14:40:59 UTC (rev 23597)
+++ branches/SAMBA_3_0/source/script/format_indent.sh 2007-06-25 15:18:41 UTC (rev 23598)
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+# -npro Do no read the '.indent.pro' files.
+# -l80 Set maximum line length for non-comment lines to 80.
+# -bad Force blank lines after the declarations.
+# -bap Force blank lines after procedure bodies.
+# -bbb Force blank lines before block comments.
+# -br Put braces on line with if, etc.
+# -ce Cuddle else and preceeding ‘}’.
+# -ut Use tabs.
+# -ts8 Set tab size to 8 spaces
+# -i8 Set indentation level to 8 spaces.
+# -di1 Put variables in column 1.
+# -brs Put braces on struct declaration line.
+# -npsl Put the type of a procedure on the same line as its name.
+# -npcs Do not put space after the function in function calls.
+# -nprs Do not put a space after every ’(’ and before every ’)’.
+# -bbo Prefer to break long lines before boolean operators.
+# -hnl Prefer to break long lines at the position of newlines in the input.
+
+indent -npro -l80 -bad -bap -bbb -br -ce -ut -ts8 -i8 -di1 -brs -npsl -npcs -nprs -bbo -hnl "$@"
Property changes on: branches/SAMBA_3_0/source/script/format_indent.sh
___________________________________________________________________
Name: svn:executable
+ *
More information about the samba-cvs
mailing list