freebsd-dev/sys/i386/conf/makeLINT.sh

20 lines
307 B
Bash
Raw Normal View History

#! /bin/sh
# $FreeBSD$
/usr/bin/sed -e 's/#.*//' -e 's/\ //' | /usr/bin/awk '
/^[ \t]*$/ { next }
/^hint\./ { next }
/^(\
machine|\
ident|\
device|\
makeoptions|\
options|\
profile|\
cpu|\
option|\
maxusers\
)[ \t]/ { print; next }
{ printf("unrecognized line: line %d: %s\n", NR, $0) > "/dev/stderr" }
'