blob: 6cbec57c50f48a8373a7ad7a61a0e8ed7ba77fd0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#!/usr/bin/env perl
use strict;
use Getopt::Long;
my $output;
my $version;
Getopt::Long::Configure('pass_through');
Getopt::Long::GetOptions(
'output=s' => \$output,
'version' => \$version
);
if ($version)
{
printf "OpenWrt help2man 1.40.10\n";
exit 0;
}
elsif ($output)
{
open O, "> $output" || die "Unable to open $output: $!\n";
print O "Dummy man page.\n";
close O;
}
else
{
print O "Dummy man page.\n";
}
|