Skip to main content
summaryrefslogtreecommitdiffstats
blob: 613936cc118d95bbdf1e2486669510506fa8fe86 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<html>
<head>
<?php

include("buildproperties.php");

echo "<title>Build Notes for $BUILD_ID </title>";
?>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="../../../default_style.css" type="text/css">
</head>
<body>

<?php
if (file_exists("report.txt")) {

    echo "<h2>Change Reports</h2>";
    echo "<p><a href=\"report.txt\">Report of changes</a> from previous build.</p>";
}


if (file_exists("buildnotes")) {
    $hasNotes = false;
    $aDirectory = dir("buildnotes");
    while ($anEntry = $aDirectory->read()) {
        if (($anEntry != "." && $anEntry != "..") && (! preg_match("/\.css/",$anEntry))) {
            // found something, so we do "have notes"
            if (! $hasNotes) {
                echo "<h2>Build Notes</h2>\n";
                echo "<ul>";
                $hasNotes=true;
            }
            $parts = explode("_", $anEntry);
            $baseName = $parts[1];
            $parts = explode(".", $baseName);
            $component = $parts[0];
            $line = "<li>Component: <a href=\"buildnotes/$anEntry\">$component</a> ";
            echo "$line";
            echo "</li>";
        }
    }
    if ($hasNotes) {
       echo "</ul>\n";
    }
    echo "<p>Build notes (if any) are used to notify the community of notable issues or changes in a particular build.</p>";
    echo "<p>Committers, to include build notes for your component, add a file with the pattern buildnotes_&lt;component-name&gt;.html to the root of one of your bundle's source tree.</p>";

    aDirectory.closedir();
}

?>

</body>
</html>

Back to the top