List:Commits« Previous MessageNext Message »
From:mcbrown Date:September 8 2006 9:41am
Subject:svn commit - mysqldoc@docsrva: r3298 - trunk/tools
View as plain text  
Author: mcbrown
Date: 2006-09-08 11:41:15 +0200 (Fri, 08 Sep 2006)
New Revision: 3298

Log:
Fixing qandaitem* entries, which are special cases auto-generated, and therefore don't appear in the map.
When building some targets these raise errors because we link to these auto-generated entries



Modified:
   trunk/tools/idremap.pl


Modified: trunk/tools/idremap.pl
===================================================================
--- trunk/tools/idremap.pl	2006-09-08 08:54:35 UTC (rev 3297)
+++ trunk/tools/idremap.pl	2006-09-08 09:41:15 UTC (rev 3298)
Changed blocks: 2, Lines Added: 7, Lines Deleted: 1; 928 bytes

@@ -84,7 +84,7 @@
 my $filesrc = join('',<$source>);
 $source->close();
 
-if($filesrc =~ m{<(xref|link) linkend})
+if ($filesrc =~ m{<(xref|link) linkend})
 {
     my (@xrefmatches) = ($filesrc =~ m{(<xref linkend=".*?"/>)}g);
     my (@linkmatches) = ($filesrc =~ m{(<link linkend=".*?">.*?</link>)}msg);

@@ -109,6 +109,12 @@
             $content = $3;
         }
         my $title = '';
+        if ($idref =~ m/^qandaitem/)
+        {
+            print STDERR "The ID \"$idref\" is automatically generated, and assumed correct\n"
+                if ($warnings);
+            next;
+        }
         if (!exists($idmap->{$idref}))
         {
             print STDERR "Error: Cannot find reference for id=\"$idref\"\n";


Thread
svn commit - mysqldoc@docsrva: r3298 - trunk/toolsmcbrown8 Sep