diff options
author | Gerald Carter <jerry@samba.org> | 2007-06-25 15:18:41 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:23:35 -0500 |
commit | 29a976296cbf21827c31b2b6433478419becfe01 (patch) | |
tree | bf5c7b301b3bd8acc16bfc646f431866248e365f /source3 | |
parent | 9f4876c5867098c09095c6dc6305e3addf85a4ca (diff) | |
download | samba-29a976296cbf21827c31b2b6433478419becfe01.tar.gz samba-29a976296cbf21827c31b2b6433478419becfe01.tar.bz2 samba-29a976296cbf21827c31b2b6433478419becfe01.zip |
r23598: Add script for running indent and remove .indent.pro file
(This used to be commit 58a68daef0e4b34606c63670982e95298804a99b)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/.indent.pro | 30 | ||||
-rwxr-xr-x | source3/script/format_indent.sh | 21 |
2 files changed, 21 insertions, 30 deletions
diff --git a/source3/.indent.pro b/source3/.indent.pro deleted file mode 100644 index 05445f4492..0000000000 --- a/source3/.indent.pro +++ /dev/null @@ -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 diff --git a/source3/script/format_indent.sh b/source3/script/format_indent.sh new file mode 100755 index 0000000000..d901de3ebd --- /dev/null +++ b/source3/script/format_indent.sh @@ -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 "$@" |