sean            Sun Aug 14 11:12:18 2005 EDT

  Modified files:              
    /phpdoc/scripts     xml_proto.php 
  Log:
  write .cvsignore
  
http://cvs.php.net/diff.php/phpdoc/scripts/xml_proto.php?r1=1.32&r2=1.33&ty=u
Index: phpdoc/scripts/xml_proto.php
diff -u phpdoc/scripts/xml_proto.php:1.32 phpdoc/scripts/xml_proto.php:1.33
--- phpdoc/scripts/xml_proto.php:1.32   Sat Aug 13 15:00:12 2005
+++ phpdoc/scripts/xml_proto.php        Sun Aug 14 11:12:17 2005
@@ -16,7 +16,7 @@
   | Authors:   Brad House <[EMAIL PROTECTED]>                             |
   +----------------------------------------------------------------------+
  
-  $Id: xml_proto.php,v 1.32 2005/08/13 19:00:12 sean Exp $
+  $Id: xml_proto.php,v 1.33 2005/08/14 15:12:17 sean Exp $
 */
 
 /*
@@ -132,6 +132,20 @@
   return(1);
 }
 
+function write_cvsignore()
+{
+  $filename = "{$GLOBALS['constant_dir']}.cvsignore";
+  if (!$fp = fopen($filename, 'w')) {
+    echo "Failed writing: $filename\n";
+    return(0);
+  }
+  fwrite($fp, "functions.xml\n");
+  fclose($fp);
+  echo "Wrote: $filename\n";
+  return(1);
+  
+}
+
 function write_reference_xml()
 {
   global $extension_name, $constant_dir, $version;
@@ -145,7 +159,7 @@
   }
 
   fwrite($fp, '<?xml version="1.0" encoding="iso-8859-1"?>'."\n" .
-       '<!-- $Revision: 1.32 $ -->'."\n" .
+       '<!-- $Revision: 1.33 $ -->'."\n" .
        "<!-- Generated by xml_proto.php v" . $version . ". Found in /scripts 
directory of phpdoc. -->\n" .
        "<reference id=\"ref." . $extension_name . "\">\n" .
        " <title>$extension_name Functions</title>\n" .
@@ -230,7 +244,7 @@
     $functype = trim($funclist[$i]["function_type"]);
 
     fwrite($fp, '<?xml version="1.0" encoding="iso-8859-1"?>'."\n" .
-               '<!-- $Revision: 1.32 $ -->'."\n" .
+               '<!-- $Revision: 1.33 $ -->'."\n" .
                "<!-- Generated by xml_proto.php v" . $version . ". Found in 
/scripts directory of phpdoc. -->\n" .
                "<refentry id=\"function." . $fixname . "\">\n" .
                " <refnamediv>\n" .
@@ -775,6 +789,7 @@
   if ($generate_functions) {
     echo "Writing function XML files\n";
     write_functions_xml();
+    write_cvsignore();
   }
 
   if ($generate_constants) {

Reply via email to