1
0
mirror of https://github.com/osmarks/ngircd.git synced 2025-09-11 23:06:02 +00:00

Added ngindent.

This commit is contained in:
Alexander Barton
2006-07-23 11:34:32 +00:00
parent 3833f8aae3
commit 155056f386
2 changed files with 24 additions and 5 deletions

16
contrib/ngindent Executable file
View File

@@ -0,0 +1,16 @@
#/bin/sh
INDENTARGS="-kr -i8 -ts8 -l80 -c3 -cd41 -ss -ncs -psl"
# check if indent(1) is available
type indent >/dev/null 2>&1 && INDENT="indent"
type gnuindent >/dev/null 2>&1 && INDENT="gnuindent"
if [ -z "$INDENT" ]; then
echo "Error: GNU \"indent\" not found!"
exit 1
fi
$INDENT -v $INDENTARGS $*
# -eof-