]> git.donarmstrong.com Git - bugscan.git/blob - dohtml
Update the "second set of tags" for the e-mail too.
[bugscan.git] / dohtml
1 #! /bin/sh
2
3 htmldir=/home/sesse/bugscan/www
4
5 realmakepage() {
6         local   filter="$1"     # Distributions to list
7         local   title="$2"      # Title of page
8         local   date="$3"       # Date
9         local   worry="$4"      # Worry about testing only?
10         local   descr           # Description of filter
11
12         if [ -z "$filter" ]; then
13                 descr="all"
14         else
15                 descr="$filter"
16                 filter="-d $filter"
17         fi
18
19         filter="$filter $worry"
20
21         cat <<EOF
22 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
23 <html>
24   <head>
25     <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
26     <title>$title, $date</title>
27   </head>
28 <body bgcolor="white">
29 <h1 align="center">$title</h1>
30
31 <h2 align="center">$date</h2>
32
33 <p align="center">for distribution(s): $descr</p>
34
35 <hr>
36
37 <p>
38 EOF
39         ./bugreport -H -s $filter
40         
41         cat <<EOF
42 <p>
43 Explanation for <a href="http://www.debian.org/Bugs/Developer#tags">bug
44 tags</a>:
45
46 <ul>
47    <li><strong>P</strong>: pending</li>
48    <li><strong>+</strong>: patch</li>
49    <li><strong>H</strong>: help</li>
50    <li><strong>M</strong>: moreinfo</li>
51    <li><strong>R</strong>: unreproducible</li>
52    <li><strong>S</strong>: security</li>
53    <li><strong>U</strong>: upstream</li>
54    <li><strong>I</strong>: etch-ignore</li>
55 </ul>
56
57 <p>
58 The second set of tags indicate what releases a bug applies to:
59 O for oldstable (woody), S for stable (sarge), T for testing (etch),
60 U for unstable (sid) or E for experimental. X indicates that the
61 package is not in testing.
62
63 <p>
64
65 EOF
66         ./bugreport -H -l $filter
67
68         cat <<EOF
69 <hr>
70 This page is automatically generated.<br>
71 Please contact
72 <a href="mailto:owner@bugs.debian.org">owner@bugs.debian.org</a> for comments.
73 </body>
74 </html>
75 EOF
76 }
77
78 makemainpage() {
79         cat <<EOF
80 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
81 <html>
82   <head>
83     <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
84     <title>$title, $time</title>
85   </head>
86 <body bgcolor="white">
87 <h1 align="center">$title</h1>
88
89 <h2 align="center">$time</h2>
90
91 <p align="center">
92 EOF
93
94         ./bugreport -Hs
95
96         cat <<EOF
97 </p>
98
99 <div align="center"><img src="graph.png" alt="Graph of RC bugs"></div>