build:~ # diff -u createIndex4x.php createIndex4x_chris.php --- createIndex4x.php 2012-06-14 13:31:16.000000000 -0400 +++ createIndex4x_chris.php 2012-06-14 13:31:25.000000000 -0400 @@ -97,7 +97,6 @@ // hard code for now the tests ran on one box // https://bugs.eclipse.org/bugs/show_bug.cgi?id=378706 return 1; - global $subdirDrops; $testBoxes=array("linux", "macosx", "win32"); $length=count($testBoxes); @@ -140,16 +139,18 @@ $time=intval(date("H"))*60+intval(date("i")); $diff=($day-$buildDay)*24*60+$time-$buildTime; // Add icons - // SHORT TERM? Since "old builds", not from scratch, don't have these swt md5s, well use an easy indicator file, for now. - // eventually may want to put in more complicated logic to check for date, or something? - // presumably this particular md5 was choosen since last one made, I'd guess? - //$build_done=file_exists("$dropDir/checksum/swt-$buildName-win32-wce_ppc-arm-j2me.zip.md5"); - $build_done=file_exists("$dropDir/eclipse-SDK-$buildName-linux-gtk.tar.gz"); echo "
an entry: $anEntry\n"; - if (count($parts) == 3) { - - $buckets[$parts[0]][] = $anEntry; - - $timePart = $parts[2]; - $year = substr($timePart, 0, 4); - $month = substr($timePart, 4, 2); - $day = substr($timePart, 6, 2); - $hour = substr($timePart,8,2); - $minute = substr($timePart,10,2); - $timeStamp = mktime($hour, $minute, 0, $month, $day, $year); - - $timeStamps[$anEntry] = date("D, j M Y -- H:i (O)", $timeStamp); - // latestTimeStamp will not be defined, first time through - if (!isset($latestTimeStamp) || !array_key_exists($parts[0],$latestTimeStamp) || $timeStamp > $latestTimeStamp[$parts[0]]) { - $latestTimeStamp[$parts[0]] = $timeStamp; - $latestFile[$parts[0]] = $anEntry; + // do not count hidden directories in computation + // allows non-hidden ones to still show up as "most recent" else will be blank. + if (!file_exists($subdirDrops."/".$anEntry."/buildHidden")) { + if (count($parts) == 3) { + + $buckets[$parts[0]][] = $anEntry; + + $timePart = $parts[2]; + $year = substr($timePart, 0, 4); + $month = substr($timePart, 4, 2); + $day = substr($timePart, 6, 2); + $hour = substr($timePart,8,2); + $minute = substr($timePart,10,2); + $timeStamp = mktime($hour, $minute, 0, $month, $day, $year); + + $timeStamps[$anEntry] = date("D, j M Y -- H:i (O)", $timeStamp); + // latestTimeStamp will not be defined, first time through + if (!isset($latestTimeStamp) || !array_key_exists($parts[0],$latestTimeStamp) || $timeStamp > $latestTimeStamp[$parts[0]]) { + $latestTimeStamp[$parts[0]] = $timeStamp; + $latestFile[$parts[0]] = $anEntry; + } } - } - if (count($parts) == 2) { + if (count($parts) == 2) { - $buildType=substr($parts[0],0,1); - $buckets[$buildType][] = $anEntry; - $datePart = substr($parts[0],1); - $timePart = $parts[1]; - $year = substr($datePart, 0, 4); - $month = substr($datePart, 4, 2); - $day = substr($datePart, 6, 2); - $hour = substr($timePart,0,2); - $minute = substr($timePart,2,2); - $timeStamp = mktime($hour, $minute, 0, $month, $day, $year); - $timeStamps[$anEntry] = date("D, j M Y -- H:i (O)", $timeStamp); - - if (!isset($latestTimeStamp) || !array_key_exists($buildType,$latestTimeStamp) || $timeStamp > $latestTimeStamp[$buildType]) { - $latestTimeStamp[$buildType] = $timeStamp; - $latestFile[$buildType] = $anEntry; + $buildType=substr($parts[0],0,1); + $buckets[$buildType][] = $anEntry; + $datePart = substr($parts[0],1); + $timePart = $parts[1]; + $year = substr($datePart, 0, 4); + $month = substr($datePart, 4, 2); + $day = substr($datePart, 6, 2); + $hour = substr($timePart,0,2); + $minute = substr($timePart,2,2); + $timeStamp = mktime($hour, $minute, 0, $month, $day, $year); + $timeStamps[$anEntry] = date("D, j M Y -- H:i (O)", $timeStamp); + + if (!isset($latestTimeStamp) || !array_key_exists($buildType,$latestTimeStamp) || $timeStamp > $latestTimeStamp[$buildType]) { + $latestTimeStamp[$buildType] = $timeStamp; + $latestFile[$buildType] = $anEntry; + } } } } @@ -289,8 +294,6 @@ $prefix=$typeToPrefix[$value]; // if empty bucket, do not print this row if (array_key_exists($prefix,$buckets)) { - echo "