![]() |
|
|||
0001 #!/usr/bin/env perl 0002 # SPDX-License-Identifier: GPL-2.0 0003 # 0004 # Author: Mauro Carvalho Chehab <mchehab+samsung@kernel.org> 0005 # 0006 # Produce manpages from kernel-doc. 0007 # See Documentation/doc-guide/kernel-doc.rst for instructions 0008 0009 if ($#ARGV < 0) { 0010 die "where do I put the results?\n"; 0011 } 0012 0013 mkdir $ARGV[0],0777; 0014 $state = 0; 0015 while (<STDIN>) { 0016 if (/^\.TH \"[^\"]*\" 9 \"([^\"]*)\"/) { 0017 if ($state == 1) { close OUT } 0018 $state = 1; 0019 $fn = "$ARGV[0]/$1.9"; 0020 print STDERR "Creating $fn\n"; 0021 open OUT, ">$fn" or die "can't open $fn: $!\n"; 0022 print OUT $_; 0023 } elsif ($state != 0) { 0024 print OUT $_; 0025 } 0026 } 0027 0028 close OUT;
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |