diff --git a/sys/amd64/conf/Makefile b/sys/amd64/conf/Makefile index d3a508a62c18..ea9517652fde 100644 --- a/sys/amd64/conf/Makefile +++ b/sys/amd64/conf/Makefile @@ -1,10 +1,10 @@ # $FreeBSD$ all: @echo "make LINT only" clean: rm LINT -LINT: ../../conf/NOTES NOTES makeLINT.pl - cat ../../conf/NOTES NOTES | perl5 makeLINT.pl > LINT +LINT: ../../conf/NOTES NOTES makeLINT.sh + cat ../../conf/NOTES NOTES | sh makeLINT.sh > LINT diff --git a/sys/i386/conf/Makefile b/sys/i386/conf/Makefile index d3a508a62c18..ea9517652fde 100644 --- a/sys/i386/conf/Makefile +++ b/sys/i386/conf/Makefile @@ -1,10 +1,10 @@ # $FreeBSD$ all: @echo "make LINT only" clean: rm LINT -LINT: ../../conf/NOTES NOTES makeLINT.pl - cat ../../conf/NOTES NOTES | perl5 makeLINT.pl > LINT +LINT: ../../conf/NOTES NOTES makeLINT.sh + cat ../../conf/NOTES NOTES | sh makeLINT.sh > LINT diff --git a/sys/i386/conf/makeLINT.sh b/sys/i386/conf/makeLINT.sh new file mode 100644 index 000000000000..12b5c13326ab --- /dev/null +++ b/sys/i386/conf/makeLINT.sh @@ -0,0 +1,19 @@ +#! /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" } +'