]> git.donarmstrong.com Git - bugscan.git/blob - dograph
Adjust to the now-official bug presence code.
[bugscan.git] / dograph
1 #! /bin/sh
2
3 set -e
4
5 cd /home/sesse/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 #for i in counts/count-[0-9]* ; do
16 #       date=`echo $i | sed -e s/.*count-//`
17 #       count=`sed -e 's/ .*//' $i`
18 #       echo $date $count >> ${tmp}2
19 #done
20
21 cat <<EOF | gnuplot
22 set xdata time
23 set timefmt "%Y%m%d%H%M"
24 set format x "%m\n%Y"
25 set title "Number of release-critical bugs"
26 set nokey
27 set terminal png
28 set yrange [0:]
29 #set xtics 2678400
30 #set nomxtics
31 set output "/home/sesse/bugscan/www/graph.png"
32 plot "$tmp" using 1:2 with lines, "$tmp2" using 1:2 with lines
33 quit
34 EOF
35
36 rm "$tmp" "$tmp2"