List:Internals« Previous MessageNext Message »
From:patg Date:July 14 2004 7:12am
Subject:bk commit - mysqldoc tree (patg:1.1843)
View as plain text  
Below is the list of changes that have just been committed into a local
mysqldoc repository of patg. When patg does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://www.mysql.com/doc/I/n/Installing_source_tree.html

ChangeSet
  1.1843 04/07/14 00:12:11 patg@stripped +1 -0
  manual-texi2db-splitandfix.pl:
    change to accomodate <chapter> split, as well as nester <section> tags.

  tools/manual-texi2db-splitandfix.pl
    1.61 04/07/14 00:12:01 patg@stripped +11 -7
    change to accomodate <chapter> split, as well as nester <section> tags.
                             

# This is a BitKeeper patch.  What follows are the unified diffs for the
# set of deltas contained in the patch.  The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User:	patg
# Host:	krsna.patg.net
# Root:	/home/patg/mysqldoc

--- 1.60/tools/manual-texi2db-splitandfix.pl	Mon Jul 12 08:10:07 2004
+++ 1.61/tools/manual-texi2db-splitandfix.pl	Wed Jul 14 00:12:01 2004
@@ -504,6 +504,7 @@
       $line =~ s/<sect2/<chapter/;
       $line =~ s/<sect3/<sect1/;
       $line =~ s/<sect4/<sect2/;
+      $line =~ s/<sect5/<sect3/;
     }
   }
   if ($line =~ m/<appendix.*/) {
@@ -520,6 +521,10 @@
     if ($line =~ m/<\/sect1>/) {
       $line = "</part>\n";
     } 
+    #elsif ($line =~ m/\/sect[2-5]>/) {
+    #  $line = "</section>\n"; 
+    #}
+    
     elsif ($line =~ m/<\/sect2>/) {
       $line ="</chapter>\n";
     } 
@@ -893,11 +898,6 @@
       my @tmp_dirs = split(/\//, $sections{$fkey}{'d'});
       my $depth = scalar @tmp_dirs;
       my $header_path = '../' x ($depth - 1);
-      if ($opt_debug) {
-	chdir("/home/patg/docbook/mysqldoc/$dir");
-	print STDERR "dir $sections{$fkey}{'d'} depth $depth header_path $header_path\n" if -f "$header_path";
-	chdir("/home/patg/docbook");
-      }
 
       my $xml_header = $fkey eq 'TOP' ? '' : set_xml_header(
 							    $opt_encoding,
@@ -918,10 +918,14 @@
       $content =~ s/(\<\?xml .*\>)/$1\n$xml_header/;
     }
 
-    if ($opt_sectiontest) {
+    #if ($opt_sectiontest) {
+      $content =~ s/\<chapter(.*)\>/<section$1>/g;
+      $content =~ s/\<\/chapter\>/<\/section>/g;
+      $content =~ s/\<part(.*)\>/<chapter$1>/g;
+      $content =~ s/\<\/part\>/<\/chapter>/g;
       $content =~ s/\<sect[1-5](.*)\>/<section$1>/g;
       $content =~ s/\<\/sect[1-5]\>/<\/section>/g;
-    }
+    #}
       
     &make_dir($opt_subdir.$dir);
     &make_file($opt_subdir.$dir,$file,$content);
Thread
bk commit - mysqldoc tree (patg:1.1843)patg14 Jul