]>
git.ipfire.org Git - thirdparty/bird.git/blob - tools/progdoc
6 open(OUT
, ">", $out) || die "Cannot create output file";
7 process
($srcdir, "doc/prog-root");
14 open(IN
, "$f") || die "Unable to find $f";
24 my $doc = "$dir/" . shift @_;
26 open(IN
, $doc) || die "Unable to read $doc";
30 foreach $_ (@docfile) {
33 /^([A-Z]+)\s*(.*)/ || die "Parse error: $_";
36 if ($cmd eq "C") { process
("$dir/$arg", "Doc"); }
39 print OUT
"<chapt>$arg\n";
40 } elsif ($cmd eq "S") {
42 my @files = map("$dir/$_", split(' ', $arg));
43 my $fargs = join(' ', @files);
44 open(DOC
, "$srcdir/doc/kernel-doc -bird $fargs |") || die "Unable to start kernel-doc";
46 while (<DOC
>) { print OUT
; }
48 } elsif ($cmd eq "D") {
51 } else { die "Unknown command: $cmd"; }
56 open(DEP
, ">", "$out.d");