1
0
mirror of https://github.com/osmarks/ngircd.git synced 2024-10-28 04:46:17 +00:00
ngircd/contrib/ngindent

18 lines
385 B
Plaintext
Raw Normal View History

2015-12-19 18:21:45 +00:00
#!/bin/sh
2006-07-23 11:34:32 +00:00
INDENTARGS="-kr -i8 -ts8 -l80 -c3 -cd41 -ss -ncs -psl"
# check if indent(1) is available
command -v indent >/dev/null 2>&1 && INDENT="indent"
command -v gindent >/dev/null 2>&1 && INDENT="gindent"
command -v gnuindent >/dev/null 2>&1 && INDENT="gnuindent"
2006-07-23 11:34:32 +00:00
if [ -z "$INDENT" ]; then
echo "Error: GNU \"indent\" not found!"
exit 1
fi
$INDENT -v $INDENTARGS "$@"
2006-07-23 11:34:32 +00:00
# -eof-