]> granicus.if.org Git - ngircd/commitdiff
contrib/ngindent: detect "gindent" as GNU indent
authorAlexander Barton <alex@barton.de>
Mon, 1 Aug 2011 21:39:29 +0000 (23:39 +0200)
committerAlexander Barton <alex@barton.de>
Mon, 1 Aug 2011 21:39:29 +0000 (23:39 +0200)
contrib/ngindent

index 73537a6d6d07664ecac76e487aa8aaf6f03e5b7a..2ce1a26ac261ea41bbbbac9a6287f44f42943d08 100755 (executable)
@@ -4,6 +4,7 @@ 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 gindent >/dev/null 2>&1 && INDENT="gindent"
 type gnuindent >/dev/null 2>&1 && INDENT="gnuindent"
 
 if [ -z "$INDENT" ]; then