X-Git-Url: https://git.donarmstrong.com/?p=bugscan.git;a=blobdiff_plain;f=dograph;h=889a696c98857b00e256f133adfd4c2eef745602;hp=00be2d3b33d74f90c8fcc54f94ce4bc48b6d1a3b;hb=HEAD;hpb=0a8a6839c3fbeb4a67a4e43704861c3af8b35214;ds=sidebyside diff --git a/dograph b/dograph index 00be2d3..935a130 100755 --- a/dograph +++ b/dograph @@ -4,22 +4,20 @@ set -e cd /org/bugs.debian.org/bugscan -tmp=`tempfile` -tmp2=`tempfile` -tmp3=`tempfile` - -find counts -type f | sort | xargs grep '^' /dev/null | - sed 's/^.*count-//;s/ .*$//;s/:/ /' >"$tmp" -find counts -type f | sort | xargs egrep '^(.* ){6}' /dev/null | tr ":-" " " | - cut -d" " -f2,9 >"$tmp2" -find counts -type f | sort | xargs egrep '^(.* ){7}' /dev/null | tr ":-" " " | - cut -d" " -f2,10 >"$tmp3" - -#for i in counts/count-[0-9]* ; do -# date=`echo $i | sed -e s/.*count-//` -# count=`sed -e 's/ .*//' $i` -# echo $date $count >> ${tmp}2 -#done +tempdir=`mktemp -d` + +find counts -type f -not -iname '*.bad'| sort | xargs grep '^' /dev/null | + sed 's/^.*count-//;s/ .*$//;s/:/ /' >"$tempdir/rc_bugs_total" +find counts -type f -not -iname '*.bad'| sort | xargs egrep '^(.* ){6}' /dev/null | tr ":-" " " | + cut -d" " -f2,9 >"$tempdir/rc_bugs_next_release" +find counts -type f -not -iname '*.bad'| sort | xargs egrep '^(.* ){7}' /dev/null | tr ":-" " " | + cut -d" " -f2,10 >"$tempdir/rc_bugs_current_release" + +# This is the date of the bullseye release +previous_release="202108140000" + +# And this is a month ago +previous_month=`date +"%Y%m%d%H%M" --date="1 month ago"` cat <