]> git.donarmstrong.com Git - bugscan.git/blob - dograph
Make dohtml output a separate page for only testing-related bugs.
[bugscan.git] / dograph
1 #! /bin/sh
2
3 set -e
4
5 cd /org/bugs.debian.org/bugscan
6
7 tmp=`tempfile`
8 tmp2=`tempfile`
9
10 find counts -type f | sort | xargs grep '^' /dev/null |
11     sed 's/^.*count-//;s/ .*$//;s/:/ /' >"$tmp"
12 find counts -type f | sort | xargs egrep '^(.* ){6}' /dev/null |
13     sed 's/^.*count-//;s/:.* / /;' >"$tmp2"
14     
15
16 #for i in counts/count-[0-9]* ; do
17 #       date=`echo $i | sed -e s/.*count-//`
18 #       count=`sed -e 's/ .*//' $i`
19 #       echo $date $count >> ${tmp}2
20 #done
21
22 cat <<EOF | gnuplot
23 set xdata time
24 set timefmt "%Y%m%d%H%M"
25 set format x "%m\n%Y"
26 set title "Number of release-critical bugs"
27 set nokey
28 set terminal png
29 set yrange [0:]
30 #set xtics 2678400
31 #set nomxtics
32 set output "/org/bugs.debian.org/www/bugscan/graph.png"
33 plot "$tmp" using 1:2 with lines, "$tmp2" using 1:2 with lines
34 quit
35 EOF
36
37 rm "$tmp" "$tmp2"