diff options
| author | Deri James <deri@chuzzlewit.myzen.co.uk> | 2023-08-12 01:10:35 +0200 |
|---|---|---|
| committer | Alejandro Colomar <alx@kernel.org> | 2023-08-12 01:11:59 +0200 |
| commit | 8d85689bfe8fc2aca6cd6f46a3bdb519d5b64800 (patch) | |
| tree | 1547fc7c36976673eef4f526f7ef49d2799bad6b /scripts/LinuxManBook/BuildLinuxMan.pl | |
| parent | 2999582aa0d2ee72480f687c826f237da61264ef (diff) | |
| download | man-pages-8d85689bfe8fc2aca6cd6f46a3bdb519d5b64800.tar.gz | |
scripts/LinuxManBook/: Update for groff-1.23.0
Now that 1.23.0 has been released we can chop a lot of code.
Reported-by: Brian Inglis <Brian.Inglis@Shaw.ca>
Reported-by: Alejandro Colomar <alx@kernel.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
Diffstat (limited to 'scripts/LinuxManBook/BuildLinuxMan.pl')
| -rwxr-xr-x | scripts/LinuxManBook/BuildLinuxMan.pl | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/LinuxManBook/BuildLinuxMan.pl b/scripts/LinuxManBook/BuildLinuxMan.pl index 7d9605734b..510e27d4eb 100755 --- a/scripts/LinuxManBook/BuildLinuxMan.pl +++ b/scripts/LinuxManBook/BuildLinuxMan.pl @@ -56,8 +56,8 @@ my $cmdstring="-Tpdf -k -pet -M. -F. -mandoc -manmark -dpaper=a4 -P-pa4 -rC1 -rC system("groff -Tpdf -ms LMBfront.t -Z > LMBfront.Z"); system("groff -z -dPDF.EXPORT=1 -dLABEL.REFS=1 T $cmdstring 2>&1 | LC_ALL=C grep '^\\. *ds' | groff -Tpdf $cmdstring - T -Z > LinuxManBook.Z"); -system("./gropdf -F. LMBfront.Z LinuxManBook.Z > LinuxManBook.pdf"); -unlink "LinuxManBook.Z","LMBfront.Z"; # If you want to clean up +system("gropdf -F. LMBfront.Z LinuxManBook.Z -pa4 > LinuxManBook.pdf"); +#unlink "LinuxManBook.Z","LMBfront.Z"; # If you want to clean up # Aliases are the man pages which .so another man page, so build a hash of them so # that when we are processing referenced man page we can add the target for the @@ -103,6 +103,8 @@ sub BuildBook { open(BK,">T"); + print BK ".pdfpagenumbering D . 1\n"; + foreach my $fn (sort sortman glob("$dir/man*/*")) { my ($nm,$sec,$srt)=GetNmSec($fn); @@ -119,7 +121,7 @@ sub BuildBook next; } - print BK ".\\\" >>>>>> $1($2) <<<<<<\n"; + print BK ".\\\" >>>>>> $1($2) <<<<<<\n.lf 0 $bkmark\n"; if (open(F,'<',$fn)) { |
