mirror of
https://github.com/osmarks/ngircd.git
synced 2024-12-12 09:50:29 +00:00
17 lines
315 B
Plaintext
17 lines
315 B
Plaintext
|
#/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-
|