• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/libldns/0003-let-doxyparse-output-manpage-generation-issues.patch
Thomas PetazzoniThomas Petazzoni committed b5637a0df2629 Mar 2016
Raw file
Source viewDiff to previous
 
1
From d8a3da12be085fbc92e3d4d4d084c328fc37485a Mon Sep 17 00:00:00 2001
2
From: Willem Toorop <willem@nlnetlabs.nl>
3
Date: Thu, 27 Nov 2014 16:21:54 +0100
4
Subject: [PATCH] let doxyparse output manpage generation issues
5
​
6
[Backport from upstream commit
7
168ee09a4bf184947798c3ee3ac99b6651470d64, fixes the build with Perl
8
5.22.]
9
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
10
---
11
 doc/doxyparse.pl | 45 ++++++++++++++++++++++++++++++++++++++-------
12
 1 file changed, 38 insertions(+), 7 deletions(-)
13
​
14
diff --git a/doc/doxyparse.pl b/doc/doxyparse.pl
15
index 96a1732..a09b2e8 100755
16
--- a/doc/doxyparse.pl
17
+++ b/doc/doxyparse.pl
18
@@ -57,10 +57,15 @@ This manpage was automaticly generated from the ldns source code by
19
 use of Doxygen and some perl.
20
 ";
21
 
22
-getopts("m:",\%options);
23
+getopts("em:",\%options);
24
 # if -m manpage file is given process that file
25
 # parse the file which tells us what manpages go together
26
 my $functions, $see_also;
27
+my $i = -1;
28
+my $report_errors = defined $options{'e'};
29
+my $errors = 0;
30
+my %unique;
31
+
32
 if (defined $options{'m'}) {
33
    # process
34
    open(MAN, "<$options{'m'}") or die "Cannot open $options{'m'}";
35
@@ -68,18 +73,35 @@ if (defined $options{'m'}) {
36
        # func1, func2, .. | see_also1, see_also2, ...
37
        while(<MAN>) {
38
            chomp;
39
+           $i += 1;
40
            if (/^#/) { next; }
41
            if (/^$/) { next; }
42
-           ($functions, $see_also) = split /[\t ]*\|[\t ]*/, $_;
43
-           #print "{$functions}\n";
44
-           #print "{$see_also}\n";
45
+           my @parts = split /[\t ]*\|[\t ]*/, $_;
46
+           $functions = shift @parts;
47
+           $see_also = join ', ', @parts;
48
+           print "{$functions}\n";
49
+           print "{$see_also}\n";
50
            my @funcs = split /[\t ]*,[\t ]*/, $functions;
51
            my @also = split /[\t ]*,[\t ]*/, $see_also;
52
            $manpages{$funcs[0]} = \@funcs;
53
            $see_also{$funcs[0]} = \@also;
54
+           foreach (@funcs) {
55
+               if ($unique{$_}) {
56
+                   push $unique{$_}, ($i,);
57
+               } else {
58
+                   $unique{$_} = [$i];
59
+               }
60
+           }
61
            #print "[", $funcs[0], "]\n";
62
        }
63
    close(MAN);
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.