hholzgra Wed Apr 3 17:21:31 2002 EDT
Modified files:
/phpdoc/scripts reference-split.php
Log:
adding cvs query function needed for revcheck support
Index: phpdoc/scripts/reference-split.php
diff -u phpdoc/scripts/reference-split.php:1.2 phpdoc/scripts/reference-split.php:1.3
--- phpdoc/scripts/reference-split.php:1.2 Wed Apr 3 16:24:09 2002
+++ phpdoc/scripts/reference-split.php Wed Apr 3 17:21:30 2002
@@ -4,6 +4,34 @@
error_reporting(E_ALL);
ob_implicit_flush();
+# {{{ cvs stuff
+
+ function cvs_max_rev($filename,$start,$end) {
+ static $lastfile = "";
+ static $array = array();
+
+ if($filename!=$lastfile) {
+ $fp=popen("cvs annotate $filename 2>/dev/null","r");
+ $n=0;
+ if(!$fp) die("gaga"); ;
+ $array = array();
+ $lastfile = $filename;
+ while(!feof($fp)) {
+ $line = fgets($fp);
+ if(empty($line)) continue;
+ $tokens=explode(" ",$line);
+ $rev = $tokens[0];
+ $array[++$n]=explode(".",$rev);
+ }
+ pclose($fp);
+ }
+ $max=0;
+ for($n=$start;$n<=$end;$n++)
+ if($max < $array[$n][1]) $max = $array[$n][1];
+ return $max;
+ }
+# }}}
+
# {{{ convert_file
function convert_file($dir,$file) {
@@ -190,6 +218,7 @@
}
# }}}
+
// convert the current directory
convert_dir(".");