#! /bin/sh
-htmldir=/home/sesse/bugscan/www
+htmldir=/org/bugs.debian.org/www/bugscan
+
+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
+}
realmakepage() {
local filter="$1" # Distributions to list
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>
+ 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>: sarge-ignore or etch-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 (woody), S for stable (sarge), T for testing (etch),
+O for oldstable (squeeze), S for stable (wheezy), T for testing (jessie),
U for unstable (sid) or E for experimental.
<p>
}
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" "$date"
+
+ 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
mv -f $3.new $3
}
-time=$(date -u --date="$(ls -Ll status | awk '{print $6, $7}'):00 $(date +%z)")
-oldtime=$(date -u --date="$(ls -Ll status-old | awk '{print $6, $7}'):00 $(date +%z)")
+time=$(date -u -d '@'$(($(stat -c '%Y' status) / 3600 * 3600)))
+oldtime=$(date -u -d '@'$(($(stat -c '%Y' status-old) / 3600 * 3600)))
title="Release-critical bugs status"
makepage "debian" "$title" "$htmldir/debian/all.html" "$time"
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