spriebsch               Mon May 11 13:20:55 2009 UTC

  Modified files:              
    /phpruntests/src    BuildClassMap.php 
  Log:
  Added "generated file" comment to generated class map file.
  
  
http://cvs.php.net/viewvc.cgi/phpruntests/src/BuildClassMap.php?r1=1.2&r2=1.3&diff_format=u
Index: phpruntests/src/BuildClassMap.php
diff -u phpruntests/src/BuildClassMap.php:1.2 
phpruntests/src/BuildClassMap.php:1.3
--- phpruntests/src/BuildClassMap.php:1.2       Fri Apr 24 08:41:25 2009
+++ phpruntests/src/BuildClassMap.php   Mon May 11 13:20:55 2009
@@ -1,5 +1,5 @@
 <?php
-/*
+/**
  * This is stand alone code to build the file rtClassMap used by rtAutoload to 
find classes.
  * It assumes that all classes have the same name at the file name (less .php) 
 and all are prefixed by 'rt'
  * 
@@ -16,8 +16,16 @@
 
         $sourceFiles = $this->getSourceList($thisDir);
 
-        $mapString = '<?php'."\n";
-        $mapString .= '  $rtClassMap = array('."\n";
+        $mapString = '<?php' . "\n";
+        $mapString .= '/**' . "\n";
+        $mapString .= ' * Autoload Class Map' . "\n";
+        $mapString .= ' *' . "\n";
+        $mapString .= ' * This is a generated file. Do not edit!' . "\n";
+        $mapString .= ' *' . "\n";
+        $mapString .= ' * To re-generate this file, run the script ' . 
basename(__FILE__) . '.' . "\n";
+        $mapString .= ' */' . "\n";
+
+        $mapString .= '$rtClassMap = array('."\n";
 
         sort($sourceFiles);
 
@@ -31,7 +39,7 @@
             $mapString .= "    ".'\''.$className.'\''. $spaces. " => 
".'\''.$relativeLocation.'\','."\n";
         }
 
-        $mapString .= '  );'."\n";
+        $mapString .= ');'."\n";
         $mapString .= '?>'."\n";
 
         file_put_contents($thisDir.'/rtClassMap.php', $mapString);



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to