From 31d71367699ff3638c5d31a2b6ca4d7592a5b7da Mon Sep 17 00:00:00 2001 From: Latif Khalifa Date: Tue, 15 Jan 2013 23:11:46 +0100 Subject: [PATCH] Support linux 64 bit builds --- index.php | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index 8310105..8889cf2 100644 --- a/index.php +++ b/index.php @@ -84,7 +84,10 @@ Function print_build($current, $next, $buildNr, $chan) if ($next) { - if (($current->linux_file && $current->osx_file)) { + if (($current->linux_file && $current->osx_file && $current->linux64_file)) { + print "

"; + } + elseif (($current->linux_file && $current->osx_file)) { print "
"; } print ' @@ -98,7 +101,11 @@ Function print_build($current, $next, $buildNr, $chan) Build Log"; if ($current->linux_file) { - print "
\"Download Linux"; + print "
\"Download Linux (32 bit)"; + } + + if ($current->linux64_file) { + print "
\"Download Linux (64 bit)"; } if ($current->osx_file) { @@ -157,10 +164,16 @@ if ($res = $DB->query(kl_str_sql("select * from builds where chan=!s $where orde $build = new stdClass; $DB->loadFromDbRow($build, $res, $row); + $linux_file = "SingularityAlpha-i686-{$build->version}.tar.bz2"; $build->linux_file = file_exists($linux_file) ? $linux_file : false; + + $linux64_file = "SingularityAlpha-x86_64-{$build->version}.tar.bz2"; + $build->linux64_file = file_exists($linux64_file) ? $linux64_file : false; + $osx_file = "SingularityAlpha_" . str_replace(".", "_", $build->version) . ".dmg"; $build->osx_file = file_exists($osx_file) ? $osx_file : false; + $builds[] = $build; } }