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