htmldir=/org/bugs.debian.org/www/bugscan
+html_header() {
+ local title="$1" # Title of page
+ local date="$2" # Date
+
+ cat <<EOF
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <title>$title, $date</title>
+ </head>
+<body bgcolor="white">
+<h1 align="center">$title</h1>
+
+<h2 align="center">$date</h2>
+
+EOF
+}
+
+html_page_creation_notice() {
+ cat <<EOF
+<hr>
+This page is automatically generated.<br>
+Please contact
+<a href="mailto:owner@bugs.debian.org">owner@bugs.debian.org</a> for comments.
+EOF
+}
+
realmakepage() {
local filter="$1" # Distributions to list
local title="$2" # Title of page
filter="$filter $worry"
- cat <<EOF
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <title>$title, $date</title>
- </head>
-<body bgcolor="white">
-<h1 align="center">$title</h1>
+ html_header "$title" "$date"
-<h2 align="center">$date</h2>
+ cat <<EOF
<p align="center">for distribution(s): $descr</p>
+<p align="center">You might also want to check out <a href="http://udd.debian.org/bugs/">UDD</a> instead of this page.</p>
<hr>
<p>
<li><strong>R</strong>: unreproducible</li>
<li><strong>S</strong>: security</li>
<li><strong>U</strong>: upstream</li>
- <li><strong>I</strong>: wheezy-ignore or squeeze-ignore</li>
+ <li><strong>I</strong>: wheezy-ignore or jessie-ignore</li>
</ul>
<p>
The second set of tags indicate what releases a bug applies to:
-O for oldstable (lenny), S for stable (squeeze), T for testing (wheezy),
+O for oldstable (squeeze), S for stable (wheezy), T for testing (jessie),
U for unstable (sid) or E for experimental.
<p>
EOF
./bugreport -H -l $filter
+ html_page_creation_notice
+
cat <<EOF
-<hr>
-This page is automatically generated.<br>
-Please contact
-<a href="mailto:owner@bugs.debian.org">owner@bugs.debian.org</a> for comments.
</body>
</html>
EOF
}
makemainpage() {
- cat <<EOF
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <title>$title, $time</title>
- </head>
-<body bgcolor="white">
-<h1 align="center">$title</h1>
-<h2 align="center">$time</h2>
+ header "$title" "$time"
+
+ cat <<EOF
<p align="center">
EOF
cat <<EOF
</p>
-<div align="center"><img src="graph.png" alt="Graph of RC bugs"></div>
+<div align="center"><img src="graph-release.png" alt="Graph of RC bugs"></div>
+
+<p>Other graphs:
+ <ul>
+ <li><a href="graph-month.png">Graph for the last month</a></li>
+ <li><a href="graph.png">Graph with all the history</a></li>
+ </ul>
+</p>
<p>The red line graphs all bugs with release-critical severities; the green
line graphs the number of bugs that are actually a concern for the next
+ <a href="other/testing.html">Only bugs relevant to testing</a>
</ul>
<p clear=both>
-<hr>
-This page is automatically generated.<br>
-Please contact
-<a href="mailto:owner@bugs.debian.org">owner@bugs.debian.org</a> for comments.
+EOF
+
+ html_page_creation_notice
+
+ cat <<EOF
To receive all mails sent to release-critical bugs, subscribe to the
<a href="http://lists.debian.org/debian-bugs-rc/">debian-bugs-rc</a>
mailing list.
makepage "" "$title" $htmldir/other/all.html "$time"
makepage "" "$title" "$htmldir/other/stable.html" "$time" "-b"
makepage "" "$title" "$htmldir/other/testing.html" "$time" "-t"
+makepage "" "$title" "$htmldir/other/pseudo.html" "$time" "pseudo"
makemainpage > $htmldir/index.html.new
mv -f $htmldir/index.html.new $htmldir/index.html