X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=contrib%2Fngindent;h=69636a4b8cfa14161321a91b5efab92bb9382f70;hp=2ce1a26ac261ea41bbbbac9a6287f44f42943d08;hb=f0532c98cd2fcd1443f8f80ed45772d56bf4cd9e;hpb=d9325e803010d9a305182a4216bfbde168094dfa diff --git a/contrib/ngindent b/contrib/ngindent index 2ce1a26a..69636a4b 100755 --- a/contrib/ngindent +++ b/contrib/ngindent @@ -1,17 +1,17 @@ -#/bin/sh +#!/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 gindent >/dev/null 2>&1 && INDENT="gindent" -type gnuindent >/dev/null 2>&1 && INDENT="gnuindent" +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" if [ -z "$INDENT" ]; then echo "Error: GNU \"indent\" not found!" exit 1 fi -$INDENT -v $INDENTARGS $* +$INDENT -v $INDENTARGS "$@" # -eof-