= $todayStart && filemtime($file) < $tomorrowStart ) {
$todayFiles[$file] = true;
}
}
closedir( $handle );
// sort array keys (filenames) in ascending order (array values are true/false)
// see http://www.php.net/manual/en/function.ksort.php
ksort($todayFiles);
define( 'TOTAL_COLS', 3 );
function heading( $text, $level = 3 ) {
?>
"; ?>
"; ?>
|
"; ?>
"; ?>
|
|
";
foreach( $todayFiles as $filename=>$notShown ) {
if ( $notShown && preg_match( "/^$regex$/", $filename ) ) {
//echo "BBB $filename
";
//$todayFiles[$file] = false;
$file = $filename;
}
}
}
$todayFiles[$file] = false;
//echo "CCC $file
";
if ( file_exists($file) || $forceShow ) {
if ( isset($_GET['latest']) ) {
$filepath="latest/".$file;
} else {
$filepath=$file;
}
?>
|
|
|
|
- |
- |
\n";
foreach( $todayFiles as $file=>$notShown ) {
if ( $notShown && preg_match( "/$regex/", $file ) ) {
show( $file );
}
}
}
//show time machine
if (isset($_GET['latest']) ) {
echo "latest ";
} else {
echo "latest ";
}
for ( $i=4; $i>=0; $i-- ) {
$d = date("Y-m-d",strtotime("-$i days"));
if ( $d == $todayWithHyphens && ! isset($_GET['latest'])) {
echo $d;
} else {
?>
";
echo "\n";
heading( "Greenstone3 Binary Releases" );
show("Greenstone-$nextRelease3-candidate-$today-linux");
show("Greenstone-$nextRelease3-candidate-$today-linux-x64");
show("Greenstone-$nextRelease3-candidate-$today-windows.exe");
showAllMatching("Greenstone-$nextRelease3-candidate-$today-MacOS-intel.dmg", 0, "for (Snow) Leopards (v10.5-10.6)", "Greenstone-$nextRelease3-candidate-$today-Leopard-MacOS-intel.dmg");
//show("Greenstone-$nextRelease3-candidate-$today-Lion-MacOS-intel.dmg", 0, "for (Mountain) Lions (v10.7-10.8)");
show("Greenstone-$nextRelease3-candidate-$today-Monterey-MacOS-intel.dmg", 0, "for Monterey (MacOS v12)");
//this picks up similar releases of other version numbers lying around
showAllMatching("Greenstone-3\..*-candidate-$today-linux$");
showAllMatching("Greenstone-3\..*-candidate-$today-windows.exe$");
//showAllMatching("Greenstone-3\..*-candidate-$today-MacOS-intel.dmg$", 0, "for (Snow) Leopards (v10.5-10.6)");
//showAllMatching("Greenstone-3\..*-candidate-$today-Lion-MacOS-intel.dmg$", 0, "for (Mountain) Lions (v10.7-10.8)");
showAllMatching("Greenstone-3\..*-candidate-$today-Monterey-MacOS-intel.dmg$", 0, "for Monterey (MacOS v12)");
gap();
heading( "Greenstone3 Source Releases" );
showAllMatching("Greenstone-3\..*-candidate-$today-source-distribution.tar.gz");
showAllMatching("Greenstone-3\..*-candidate-$today-source-distribution.zip");
showAllMatching("Greenstone-3\..*-candidate-$today-source-component.tar.gz");
showAllMatching("Greenstone-3\..*-candidate-$today-source-component.zip");
gap();
heading( "Greenstone2 Binary Releases" );
show("Greenstone-$nextRelease2-candidate-$today-linux");
show("Greenstone-$nextRelease2-candidate-$today-linux-x64");
show("Greenstone-$nextRelease2-candidate-$today-windows.exe");
showAllMatching("Greenstone-$nextRelease2-candidate-$today-MacOS-intel.dmg", 0, "for (Snow) Leopards (v10.5-10.6)","Greenstone-$nextRelease2-candidate-$today-Leopard-MacOS-intel.dmg");
//show("Greenstone-$nextRelease2-candidate-$today-Lion-MacOS-intel.dmg", 0, "for (Mountain) Lions (v10.7-10.8)");
show("Greenstone-$nextRelease2-candidate-$today-Monterey-MacOS-intel.dmg", 0, "for Monterey (MacOS v12)");
showAllMatching("Greenstone-2\..*-candidate-$today-linux$");
showAllMatching("Greenstone-2\..*-candidate-$today-linux-x64$");
showAllMatching("Greenstone-2\..*-candidate-$today-windows.exe$");
//showAllMatching("Greenstone-2\..*-candidate-$today-MacOS-intel.dmg$", 0, "for Snow Leopards (v10.5-10.6)");
//showAllMatching("Greenstone-2\..*-candidate-$today-Lion-MacOS-intel.dmg$", 0, "for (Mountain) Lions (v10.7-10.8)");
showAllMatching("Greenstone-2\..*-candidate-$today-Monterey-MacOS-intel.dmg$", 0, "for Monterey (MacOS v12)");
gap();
heading( "Greenstone2 Source Releases" );
showAllMatching("Greenstone-2\..*-candidate-$today-source-distribution.tar.gz");
showAllMatching("Greenstone-2\..*-candidate-$today-source-distribution.zip");
showAllMatching("Greenstone-2\..*-candidate-$today-source-component.tar.gz");
showAllMatching("Greenstone-2\..*-candidate-$today-source-component.zip");
gap();
heading("Documented Examples" );
show("Greenstone3-documented-examples-$today.tar.gz");
show("Greenstone3-documented-examples-$today.zip");
gap();
if ( !isset( $_GET['latest']) ) {
heading("Nightly Build Logs");
showAllMatching("\.txt$");
gap();
anchorheading("Regression Test Reports", "regression");
showAllMatching("\.html?$");
gap();
}
heading( "Other Files" );
foreach( $todayFiles as $file=>$notShown ) {
if ( $notShown ) show( $file );
}
show("IsisGdl.bin32", 1,"","IsisGdl.linux32"); // temporary
show("IsisGdl.macleopard", 1); // temporary
show("IsisGdl.mac64mojave", 1); // temporary
gap();
echo "
\n";
?>