blob: e843ecfa6ee9a834fff27819ec64134d3e5cd7cc [file] [log] [blame]
david_williams0c366d32006-12-10 07:08:39 +00001<html>
2<head>
3<?php
david_williams5d9c9862007-11-19 04:42:55 +00004$parts = explode("/", getcwd());
5$parts2 = explode("-", $parts[count($parts) - 1]);
6$buildName = $parts2[1];
david_williamsb1d22d62007-09-23 01:09:44 +00007
david_williams5d9c9862007-11-19 04:42:55 +00008echo "<title>Build Notes for $buildName </title>";
david_williams0c366d32006-12-10 07:08:39 +00009?>
10<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
david_williams5d9c9862007-11-19 04:42:55 +000011<link rel="stylesheet" href="http://dev.eclipse.org/default_style.css"
12 type="text/css">
david_williams0c366d32006-12-10 07:08:39 +000013</head>
14<body>
15
david_williams5d9c9862007-11-19 04:42:55 +000016<p><b><font face="Verdana" size="+3">Build Notes</font></b></p>
david_williams0c366d32006-12-10 07:08:39 +000017
david_williams5d9c9862007-11-19 04:42:55 +000018<table border=0 cellspacing=5 cellpadding=2 width="100%">
19 <tr>
20 <td align=LEFT valign=TOP colspan="3" bgcolor="#0080C0"><b><font
21 color="#FFFFFF" face="Arial,Helvetica"> Build Notes for <?php echo "$buildName"; ?></font></b></td>
22 </tr>
david_williams0c366d32006-12-10 07:08:39 +000023</table>
24<table border="0">
25
26<?php
david_williams5d9c9862007-11-19 04:42:55 +000027$hasNotes = false;
28$aDirectory = dir("buildnotes");
29while ($anEntry = $aDirectory->read()) {
30 if ($anEntry != "." && $anEntry != "..") {
31 //print_r($anEntry);
32 //echo "<br />";
33
34 $subject = $anEntry;
35 $pattern = '/^buildnotes_(.*)/i';
36 preg_match($pattern, $subject, $matches);
37 $subject = $matches[1];
38 //print_r($subject);
39 //echo "<br />";
40 $pattern = '/^(.*)\.html$/';
41 preg_match($pattern, $subject, $matches);
42 //print_r($matches);
43 //echo "<br />";
44
45 $component = $matches[1];
46
47 $line = "<td>Component: <a href=\"buildnotes/$anEntry\">$component</a></td>";
48 echo "<tr>";
49 echo "$line";
50 echo "</tr>";
51 $hasNotes = true;
52
53 }
54}
55$aDirectory.closedir();
56if (!$hasNotes) {
57 echo "<br>There are no build notes for this build.";
58}
david_williams0c366d32006-12-10 07:08:39 +000059?>
60
61</table>
62</body>
63</html>