X-Git-Url: https://git.donarmstrong.com/?p=bugscan.git;a=blobdiff_plain;f=dohtml;h=8a393031e4136ea34e9cb1ca5e519d5e541bf5b2;hp=19813e1857a5963392397034cc21a8a83d0d78e4;hb=dc6c5369d04ccf6b7f1f41bebc4ecc90c00adb1a;hpb=d5a0b74a3ddd8ad47fb594e890dfd0f454627655
diff --git a/dohtml b/dohtml
index 19813e1..8a39303 100755
--- a/dohtml
+++ b/dohtml
@@ -1,11 +1,12 @@
#! /bin/sh
-htmldir=/org/bugs.debian.org/www/bugscan
+htmldir=/home/sesse/bugscan/www
realmakepage() {
local filter="$1" # Distributions to list
local title="$2" # Title of page
local date="$3" # Date
+ local worry="$4" # Worry about testing only?
local descr # Description of filter
if [ -z "$filter" ]; then
@@ -15,6 +16,8 @@ realmakepage() {
filter="-d $filter"
fi
+ filter="$filter $worry"
+
cat <
@@ -31,10 +34,6 @@ realmakepage() {
-Check out Steinar H. Gunderson's beta version-tracking aware release critical bug page.
-
-
-
EOF
./bugreport -H -s $filter
@@ -113,7 +112,8 @@ EOF
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
release (excluding ignored bugs, bugs on packages not in testing, and bugs
-whose tags indicate that they don't apply to testing).
+whose tags and/or versioning information indicate that they don't apply to
+testing).
Recent changes
EOF
@@ -126,6 +126,8 @@ EOF
- All
+
+ + Only bugs relevant to testing
+ All non-US
- main
@@ -158,21 +160,22 @@ EOF
makepage() {
if [ ! -d "`dirname $3`" ]; then mkdir -p "`dirname $3`"; fi
- realmakepage "$1" "$2" "$4" > $3.new
+ realmakepage "$1" "$2" "$4" "$5" > $3.new
mv -f $3.new $3
}
-time=$(date -u --date="1970-1-1 00:00:00 UTC + $(stat -c %Y status) secs")
-oldtime=$(date -u --date="1970-1-1 00:00:00 UTC + $(stat -c %Y status-old) secs")
+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)")
title="Release-critical bugs status"
-
makepage "debian" "$title" "$htmldir/debian/all.html" "$time"
makepage "debian/main" "$title" $htmldir/debian/main.html "$time"
makepage "debian/contrib" "$title" $htmldir/debian/contrib.html "$time"
makepage "debian/non-free" "$title" $htmldir/debian/non-free.html "$time"
makepage "debian/source" "$title" $htmldir/debian/source.html "$time"
+makepage "" "$title" "$htmldir/debian/testing.html" "$time" "-t"
+
makepage "non-US" "$title" "$htmldir/debian-non-US/all.html" "$time"
makepage "non-US/main" "$title" $htmldir/debian-non-US/main.html "$time"
makepage "non-US/contrib" "$title" $htmldir/debian-non-US/contrib.html "$time"