[gtk-doc] gtkdoc-fixxref: don't create links to uninstalled docs



commit df275e5d42b587be38e6bf14072a3f9a5eaafa96
Author: Stefan Sauer <ensonic users sf net>
Date:   Mon Sep 24 19:05:28 2012 +0200

    gtkdoc-fixxref: don't create links to uninstalled docs
    
    Assume the docs will be installed and use that location instead.
    Fixes #679588

 gtkdoc-fixxref.in |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/gtkdoc-fixxref.in b/gtkdoc-fixxref.in
index a2194f4..569200b 100755
--- a/gtkdoc-fixxref.in
+++ b/gtkdoc-fixxref.in
@@ -246,8 +246,12 @@ sub ScanIndex {
     # the rest.
     my $dir = "../";
     if ($use_absolute_links) {
-        $file =~ /(.*\/)(.*?)\/index\.sgml/;
-        $dir = $1;
+        # For uninstalled index.sgml files we'd need to map the path to where it
+        # will be installed to
+        if ($file !~ /\.\//) {
+          $file =~ /(.*\/)(.*?)\/index\.sgml/;
+          $dir = $1;
+        }
     }
     @TRACE@("Scanning index file=$file, absolute=$use_absolute_links, dir=$dir");
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]