[Python-checkins] CVS: python/dist/src/Doc/tools mkhowto,1.6,1.7

Fred Drake python-dev@python.org
Fri, 31 Mar 2000 15:27:38 -0500


Update of /projects/cvsroot/python/dist/src/Doc/tools
In directory seahag.cnri.reston.va.us:/home/fdrake/projects/python/Doc/tools

Modified Files:
	mkhowto 
Log Message:

Added --numeric option, similar to mkhtml.sh.


Index: mkhowto
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Doc/tools/mkhowto,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** mkhowto	1999/09/23 16:55:09	1.6
--- mkhowto	2000/03/31 20:27:36	1.7
***************
*** 19,22 ****
--- 19,24 ----
      --image-type	Specify the image type to use in HTML output;
                          values: gif (default), png.
+     --numeric           Don't rename the HTML files; just keep node#.html for
+                         the filenames.
  
  Other options:
***************
*** 85,88 ****
--- 87,91 ----
      quiet = 0
      runs = 0
+     numeric = 0
      style_file = os.path.join(TOPDIR, "html", "style.css")
      about_file = os.path.join(TOPDIR, "html", "about.dat")
***************
*** 108,112 ****
                                      "link=", "split=", "logging", "debugging",
                                      "keep", "quiet", "runs=", "image-type=",
!                                     "about="]
                                     + list(self.ALL_FORMATS))
          for opt, arg in opts:
--- 111,115 ----
                                      "link=", "split=", "logging", "debugging",
                                      "keep", "quiet", "runs=", "image-type=",
!                                     "about=", "numeric"]
                                     + list(self.ALL_FORMATS))
          for opt, arg in opts:
***************
*** 146,149 ****
--- 149,154 ----
                  self.about_file = os.path.normpath(
                      os.path.join(os.getcwd(), arg))
+             elif opt == "--numeric":
+                 self.numeric = 1
              #
              # Format specifiers:
***************
*** 338,342 ****
          shutil.copyfile(os.path.join(builddir, self.doc + ".html"),
                          os.path.join(builddir, "index.html"))
!         if max_split_depth != 1:
              pwd = os.getcwd()
              try:
--- 343,347 ----
          shutil.copyfile(os.path.join(builddir, self.doc + ".html"),
                          os.path.join(builddir, "index.html"))
!         if max_split_depth != 1 and not self.options.numeric:
              pwd = os.getcwd()
              try: