head 1.2; access; symbols pkgsrc-2013Q2:1.2.0.8 pkgsrc-2013Q2-base:1.2 pkgsrc-2012Q4:1.2.0.6 pkgsrc-2012Q4-base:1.2 pkgsrc-2011Q4:1.2.0.4 pkgsrc-2011Q4-base:1.2 pkgsrc-2011Q2:1.2.0.2 pkgsrc-2011Q2-base:1.2 pkgsrc-2010Q1:1.1.0.2 pkgsrc-2010Q1-base:1.1; locks; strict; comment @# @; 1.2 date 2010.06.11.13.16.08; author drochner; state dead; branches; next 1.1; 1.1 date 2010.01.22.14.21.32; author wiz; state Exp; branches; next ; desc @@ 1.2 log @update to 1.15 changes: -Support for multiple DOC_SOURCE_DIR directories -many bugfixes @ text @$NetBSD: patch-aa,v 1.1 2010/01/22 14:21:32 wiz Exp $ From b39bb84dfb5f16c8b2977105bd5876b7b8d58a11 Mon Sep 17 00:00:00 2001 From: Vincent Untz Date: Tue, 22 Dec 2009 11:54:31 +0000 Subject: fixxref: make it work again without --module argument, Fixes #605211 This restores a compatible behavior with previous versions of gtk-doc, which is required by many tarballs. --- gtkdoc-fixxref.in.orig 2009-12-17 19:36:51.000000000 +0000 +++ gtkdoc-fixxref.in @@@@ -168,36 +168,38 @@@@ foreach my $dir (@@EXTRA_DIRS) { } } -open (INPUT, "$MODULE-sections.txt") - || die "Can't open $MODULE-sections.txt: $!"; -my $subsection = ""; -while () { - if (m/^#/) { - next; - - } elsif (m/^
/) { - $subsection = ""; - } elsif (m/^/i) { - $subsection = $1; - } elsif (m/^/) { - next; - } elsif (m/^(.*)<\/TITLE>/) { - next; - } elsif (m/^<FILE>(.*)<\/FILE>/) { - next; - } elsif (m/^<INCLUDE>(.*)<\/INCLUDE>/) { - next; - } elsif (m/^<\/SECTION>/) { - next; - } elsif (m/^(\S+)/) { - my $symbol=CreateValidSGMLID($1); - - if ($subsection eq "Standard" || $subsection eq "Private") { - $NoLinks{$symbol} = 1; +if (defined($MODULE)) { + open (INPUT, "$MODULE-sections.txt") + || die "Can't open $MODULE-sections.txt: $!"; + my $subsection = ""; + while (<INPUT>) { + if (m/^#/) { + next; + + } elsif (m/^<SECTION>/) { + $subsection = ""; + } elsif (m/^<SUBSECTION\s*(.*)>/i) { + $subsection = $1; + } elsif (m/^<SUBSECTION>/) { + next; + } elsif (m/^<TITLE>(.*)<\/TITLE>/) { + next; + } elsif (m/^<FILE>(.*)<\/FILE>/) { + next; + } elsif (m/^<INCLUDE>(.*)<\/INCLUDE>/) { + next; + } elsif (m/^<\/SECTION>/) { + next; + } elsif (m/^(\S+)/) { + my $symbol=CreateValidSGMLID($1); + + if ($subsection eq "Standard" || $subsection eq "Private") { + $NoLinks{$symbol} = 1; + } } } + close (INPUT); } -close (INPUT); &FixCrossReferences ($MODULE_DIR); @ 1.1 log @Add two patches from upstream to fix --module and 'make dist' problems. Bump PKGREVISION. @ text @d1 1 a1 1 $NetBSD$ @