Bug fixes to the doc generating scripts

Correct the author output in doc-insmod.pl
        Handle unknown prefix with suggestion in doc-features.pl


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1581 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2002-11-07 12:43:28 +00:00
1 parent 67ad2ab008
commit 74db33831d
3 files changed
+38 -11

No files matched your search

+21 -1
View File
@@ -324,7 +324,27 @@ if (@ARGV)
my %rprefix = reverse %prefix;
foreach my $prefix (@ARGV)
{
output_data($rprefix{$prefix});
if (exists $rprefix{$prefix})
{
output_data($rprefix{$prefix})
}
else
{
my $lines = 0;
print "No chip named `$prefix' was found.\n",
"Suggestions:\n";
foreach my $k (sort keys %rprefix)
{
if (grep /$prefix/, $k)
{
print " $k\n";
$lines++;
}
}
print " (none)\n"
unless $lines;
print "\n";
}
}
}
else