[llvm-commits] CVS: nightlytest-serverside/test.php
Patrick Jenkins
pjenkins at apple.com
Fri Jul 21 15:09:29 PDT 2006
Changes in directory nightlytest-serverside:
test.php updated: 1.5 -> 1.6
---
Log message:
Added check ot see whether the build log exists to make sure we dont link to a file thats not there
---
Diffs of the changes: (+9 -2)
test.php | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
Index: nightlytest-serverside/test.php
diff -u nightlytest-serverside/test.php:1.5 nightlytest-serverside/test.php:1.6
--- nightlytest-serverside/test.php:1.5 Fri Jul 21 17:06:16 2006
+++ nightlytest-serverside/test.php Fri Jul 21 17:09:17 2006
@@ -123,10 +123,17 @@
$sign="(-)";
}
$buildfile=str_replace(" ", "_", $cur_date);
-print "<font size=\"-1\"><a href=\"javascript://\"onclick=\"toggleLayer('buildStatus');\", id=\"buildStatus_\">$sign Build Status</a></font>\n";
+print "<font size=\"-1\"><a href=\"javascript://\"onclick=\"toggleLayer".
+ "('buildStatus');\", id=\"buildStatus_\">$sign Build Status</a></font>\n";
print "<div id=\"buildStatus\" style=\"display: $disp;\" class=\"hideable\">\n";
print "<h3><u>Build Status </u></h3></p>";
-print "<a href=\"machines/$machine_id/$buildfile-Build-Log.txt\"><font color=red>{$today_row['buildstatus']}</font></a><br>\n";
+if(file_exists("machines/$machine_id/$buildfile-Build-Log.txt")){
+ print "<a href=\"machines/$machine_id/$buildfile-Build-Log.txt\">".
+ "<font color=red>{$today_row['buildstatus']}</font></a><br>\n";
+}
+else{
+ print "<font color=red>{$today_row['buildstatus']}</font><br>\n";
+}
print "</div><br><br>\n";
/*****************************************************
More information about the llvm-commits
mailing list