--- cdn/www/sources.html 2003/02/21 20:30:28 1.77 +++ cdn/www/sources.html 2003/02/22 11:56:31 1.96 @@ -15,11 +15,12 @@ cvs -d :pserver:guest@mozdev.org:/cvs co - + ' . $local_conf_commits_msg . "\n"; //BEGIN BLOCK - // if(file_exists(COMMIT_PATH.$commit_log) && $local_conf_commits) { // - if(file_exists('/tmp/commit_test') && $local_conf_commits) { + if(file_exists(COMMIT_PATH.$commit_log) && $local_conf_commits) { + // if(file_exists('/tmp/commit_test') && $local_conf_commits) { - // $size = filesize(COMMIT_PATH.$commit_log); - $size = filesize('/tmp/commit_test'); + $size = filesize(COMMIT_PATH.$commit_log); + // $size = filesize('/tmp/commit_test'); $contents = array(); if ($size > MAX_READ_SIZE) { // print "\n"; @@ -66,34 +67,13 @@ cvs -d :pserver:guest@mozdev.org:/cvs co if (!$contents) { - // $contents = file(COMMIT_PATH.$commit_log); // - $contents = file('/tmp/commit_test'); // echo 'boing '; echo $contents; + $contents = file(COMMIT_PATH.$commit_log); + // $contents = file('/tmp/commit_test'); // echo 'boing '; echo $contents; } // preprocess Tag: stuff - $stnetnoc = implode('', $contents); - - $contents = ereg_replace('Tag\:[[:space:]]{1,}', 'Tag: ', $stnetnoc); - - // - // '_[_cdn_]_ Log:' - // '_[_cdn_]_ Tag: ...' - - $stetnoc = ereg_replace('Log\:[[:space:]]{1,}Tag', "Log\:\n Tg", $stetnoc); - - // - // '_[_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:' - - $stetnoc = ereg_replace("Log\:[[:space:]]{1,}Tg", "Log\:\n Tag", $stetnoc); - - $contents = explode("\n", $stnetnoc); - // /preprocess Tag: stuff $len=count($contents); @@ -204,7 +184,7 @@ cvs -d :pserver:guest@mozdev.org:/cvs co for($y=0; $y < count($checkinsA); ++$y) { - if (ereg('Tag:', $checkinsA[$y]) || ereg('Tag:', $checkinsA[$y-1])) + if (ereg('Tag:', $checkinsA[$y]) || ereg('Tag:', $checkinsA[$y-1]) || $_tag) { $TAG = true; } @@ -223,11 +203,18 @@ cvs -d :pserver:guest@mozdev.org:/cvs co } else { - $checkins .= ' '; ++$_tagtracker; + $checkins .= ' '; } $checkins .= $checkinsA[$y]; + if ( ereg("Tag\:$", trim($checkinsA[$y])) && empty($checkinsA[$y+1])) { + $_tag = true; + } + else { + $_tag = false; + } + if(!$TAG): $checkins .= ''; endif; }