summaryrefslogtreecommitdiffstats
path: root/sys/i386/conf/makeLINT.pl
blob: 3c0f917d057d9a471f9fe90dbae8b4b7cba42331 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#! /usr/bin/perl
# $FreeBSD$

$lno=0;
while (<>) {
	chop;
	s/#.*//;
	s/\f//g;
	s/^[ \t]+//;
	$line = $_;
	$lno++;
	($key, @rest) = split;
	next if ($key eq "");
	next if ($key =~ /^hint\./);
	if ($key eq "machine" || $key eq "ident" || $key eq "device" ||
	    $key eq "makeoptions" || $key eq "options" ||
	    $key eq "profile" ||
	    $key eq "cpu" || $key eq "option" || $key eq "maxusers") {
		print "$line\n";
	} else {
		print STDERR "unrecognized line: line $lno: $line\n";
	}
}
OpenPOWER on IntegriCloud