Diff for /cdn/www/sources.html between versions 1.73 and 1.77

version 1.73, 2003/02/21 19:03:24 version 1.77, 2003/02/21 20:30:28
Line 33  cvs -d :pserver:guest@mozdev.org:/cvs co Line 33  cvs -d :pserver:guest@mozdev.org:/cvs co
   $yesterday          = date("y/m/" . sprintf('%2u', $day));    $yesterday          = date("y/m/" . sprintf('%2u', $day));
   $commit_log         = "cvs@$project.mozdev.org";    $commit_log         = "cvs@$project.mozdev.org";
   
 // $today = '03/02/14'; //
   $today = '03/02/14';
   
   if(!$local_conf_commits)     if(!$local_conf_commits) 
     print '<span id="CVS-local-conf-commits">' . $local_conf_commits_msg . "</span>\n";      print '<span id="CVS-local-conf-commits">' . $local_conf_commits_msg . "</span>\n";
   
   //BEGIN BLOCK    //BEGIN BLOCK
  if(file_exists(COMMIT_PATH.$commit_log) && $local_conf_commits) {  // if(file_exists(COMMIT_PATH.$commit_log) && $local_conf_commits) { 
 // if(file_exists('/tmp/commit_test') && $local_conf_commits) {  //
   if(file_exists('/tmp/commit_test') && $local_conf_commits) { 
   
    // $size = filesize(COMMIT_PATH.$commit_log);     // $size = filesize(COMMIT_PATH.$commit_log);
     $size = filesize('/tmp/commit_test');      $size = filesize('/tmp/commit_test');
Line 64  cvs -d :pserver:guest@mozdev.org:/cvs co Line 66  cvs -d :pserver:guest@mozdev.org:/cvs co
           
     if (!$contents)      if (!$contents)
     {      {
      $contents = file(COMMIT_PATH.$commit_log);     // $contents = file(COMMIT_PATH.$commit_log);
     // $contents = file('/tmp/commit_test'); // echo 'boing '; echo $contents;     //
       $contents = file('/tmp/commit_test'); // echo 'boing '; echo $contents;
     }      }
   
     // preprocess Tag: stuff      // preprocess Tag: stuff
           
    $stnetnoc = implode('_[_cdn_]_', $contents); // echo '<pre>' . $stnetnoc . '</pre></p>';    $stnetnoc = implode('', $contents);
           
    $contents = ereg_replace('Tag\:[[:space:]]{1,}_\[_cdn_\]_[[:space:]]{1,}', 'Tag: ', $stnetnoc);    $contents = ereg_replace('Tag\:[[:space:]]{1,}', 'Tag: ', $stnetnoc);
   
    $stetnoc = ereg_replace('Log\:+[[:space:]]{1,}_\[_cdn_\]_+Tag', "Log\:_[_cdn_]_Tg", $stetnoc);    //
     // '_[_cdn_]_  Log:'
     // '_[_cdn_]_  Tag: ...'
     
     $stetnoc = ereg_replace('Log\:[[:space:]]{1,}Tag', "Log\:\n  Tg", $stetnoc);
   
    $stnetnoc = eregi_replace("Tag\:\ [^[:space:]\.]{1,}\ ", "\\0_[_cdn_]_                        ", $contents);    //
     // '_[_cdn_]_  Log:'
     // '_[_cdn_]_  Tg: ...'
     
     $stnetnoc = eregi_replace("Tag\:\ [^[:space:]\.]{1,}\ ", "\\0                        ", $contents);
     // needs to not process 'Tag:' if in a commemt, i.e. it follows 'Log:'      // needs to not process 'Tag:' if in a commemt, i.e. it follows 'Log:'
           
    $stetnoc = ereg_replace('Log\:_\[_cdn_\]_+Tg', "Log\:_[_cdn_]_Tag", $stetnoc);    $stetnoc = ereg_replace("Log\:[[:space:]]{1,}Tg", "Log\:\n  Tag", $stetnoc);
   
    $contents = explode('_[_cdn_]_', $stnetnoc);    $contents = explode("\n", $stnetnoc);
           
     // /preprocess Tag: stuff      // /preprocess Tag: stuff
           
Line 153  cvs -d :pserver:guest@mozdev.org:/cvs co Line 164  cvs -d :pserver:guest@mozdev.org:/cvs co
             // '  Removed:     www/protected sources.html'              // '  Removed:     www/protected sources.html'
             // '               www/compact index.html' ?              // '               www/compact index.html' ?
   
            if ( ereg("((Added|Modified|Removed):)", $checkins) || ereg("[[:space:]]{9}", $checkins) )            if ( ereg("((Added|Modified|Removed):)", $checkins) || ereg("^[[:space:]]{9}", $checkins) )
             {              {
   
               $identifier = trim(substr($checkins, 0, 15)); // may change to &nbsp; group                $identifier = trim(substr($checkins, 0, 15)); // may change to &nbsp; group

Removed from v.1.73  
changed lines
  Added in v.1.77


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>