From fd9c9c0e27d48bc6071cd175d38363b03114178c Mon Sep 17 00:00:00 2001 From: Brendan O'Dea Date: Sun, 29 May 2011 22:47:16 +1000 Subject: Drop section numbers, and headers --- help2man.html.PL | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'help2man.html.PL') diff --git a/help2man.html.PL b/help2man.html.PL index 3b50bfc..e030296 100755 --- a/help2man.html.PL +++ b/help2man.html.PL @@ -39,8 +39,8 @@ die "can't parse boilerplate" unless $footer; # Generate manual from texinfo my $texi_tmp = File::Temp->new(); -system 'makeinfo', '--html', '--no-split', '--output=' . $texi_tmp->filename, - 'help2man.texi'; +system 'makeinfo', '--html', '--no-number-sections', '--no-headers', + '--no-split', '--output=' . $texi_tmp->filename, 'help2man.texi'; my $gnu_standards = "http://www.gnu.org/prep/standards/standards.html"; my $body = <$texi_tmp>; @@ -76,3 +76,10 @@ print "Extracting $target (with GNU boilerplate)\n" unless $opts{quiet}; print $out $header, $body, $footer; + +# Fix output file permissions +unless ($opts{stdout}) +{ + close $out; + chmod 0444, $target or warn "$0: can't change mode of $target ($!)\n"; +} -- cgit v1.2.1