mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-23 20:11:42 +00:00
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:
1 parent
67ad2ab008
commit
74db33831d
3 files changed
+38
-11
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user