diff options
author | Mukund Sivaraman <muks@banu.com> | 2009-09-15 01:00:27 +0530 |
---|---|---|
committer | Mukund Sivaraman <muks@banu.com> | 2009-09-15 01:00:50 +0530 |
commit | 26b95f7b8188f027e27b27be150e14e473f4a91c (patch) | |
tree | 80ed38d3618679b0a7a25bef5445e8183ce755ce | |
parent | 5d48ba3c66cc0c9f59cb502c5fac33dad6d4ffc0 (diff) | |
download | tinyproxy-26b95f7b8188f027e27b27be150e14e473f4a91c.tar.gz tinyproxy-26b95f7b8188f027e27b27be150e14e473f4a91c.zip |
Add Tinyproxy indent script
-rw-r--r-- | Makefile.am | 1 | ||||
-rwxr-xr-x | tinyproxy-indent.sh | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index 7a2551b..736d918 100644 --- a/Makefile.am +++ b/Makefile.am @@ -11,4 +11,5 @@ ACLOCAL_AMFLAGS = -I m4macros EXTRA_DIST = \ autogen.sh \ + tinyproxy-indent.sh \ TODO diff --git a/tinyproxy-indent.sh b/tinyproxy-indent.sh new file mode 100755 index 0000000..00300e1 --- /dev/null +++ b/tinyproxy-indent.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +# This is a script to mostly indent C code to the Tinyproxy coding +# style. It needs GNU indent 2.2.10 or above. In a nutshell, Tinyproxy +# uses the K&R style, tab size 8, spaces instead of tabs, wrap at column +# 80, space before brackets. + +indent -npro -kr -i8 -ts8 -sob -l80 -ss -cs -cp1 -bs -nlps -nprs -pcs \ + -saf -sai -saw -sc -cdw -ce -nut -il0 "$@" |