Add Tinyproxy indent script

master
Mukund Sivaraman 2009-09-15 01:00:27 +05:30
parent 5d48ba3c66
commit 26b95f7b81
2 changed files with 10 additions and 0 deletions

View File

@ -11,4 +11,5 @@ ACLOCAL_AMFLAGS = -I m4macros
EXTRA_DIST = \
autogen.sh \
tinyproxy-indent.sh \
TODO

9
tinyproxy-indent.sh Executable file
View File

@ -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 "$@"