5 cd /org/bugs.debian.org/bugscan
11 find counts -type f -not -iname '*.bad'| sort | xargs grep '^' /dev/null |
12 sed 's/^.*count-//;s/ .*$//;s/:/ /' >"$tmp"
13 find counts -type f -not -iname '*.bad'| sort | xargs egrep '^(.* ){6}' /dev/null | tr ":-" " " |
14 cut -d" " -f2,9 >"$tmp2"
15 find counts -type f -not -iname '*.bad'| sort | xargs egrep '^(.* ){7}' /dev/null | tr ":-" " " |
16 cut -d" " -f2,10 >"$tmp3"
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
24 # This is the date of the wheezy release
25 previous_release="201305040600"
27 # And this is a month ago
28 previous_month=`date +"%Y%m%d%H%M" --date="1 month ago"`
32 set timefmt "%Y%m%d%H%M"
34 set title "Number of release-critical bugs"
40 set output "/org/bugs.debian.org/www/bugscan/graph.png"
41 plot "$tmp" using 1:2 with lines, "$tmp2" using 1:2 with lines, "$tmp3" using 1:2 with lines
42 set xrange ["$previous_release":]
43 set output "/org/bugs.debian.org/www/bugscan/graph-release.png"
44 plot "$tmp" using 1:2 with lines, "$tmp2" using 1:2 with lines, "$tmp3" using 1:2 with lines
45 set xrange ["$previous_month":]
46 set format x "%d\n%m\n%Y"
47 set output "/org/bugs.debian.org/www/bugscan/graph-month.png"
48 plot "$tmp" using 1:2 with lines, "$tmp2" using 1:2 with lines, "$tmp3" using 1:2 with lines
52 rm "$tmp" "$tmp2" "$tmp3"