add the scripts for data-analysis

This commit is contained in:
Stephen Smoogen 2016-05-04 17:00:23 +00:00
parent e55c8f37c0
commit 4f8471d08e
6 changed files with 1399 additions and 0 deletions

View file

@ -0,0 +1,196 @@
BEGIN{
olddate="1970-01-01"
epel=0;
fedora=0;
epel4=0;
epel5=0;
epel6=0;
epel7=0;
f03=0;
f04=0;
f05=0;
f06=0;
f07=0;
f08=0;
f09=0;
f10=0;
f11=0;
f12=0;
f13=0;
f14=0;
f15=0;
f16=0;
f17=0;
f18=0;
f19=0;
f20=0;
f21=0;
f22=0;
f23=0;
f24=0;
f25=0;
f26=0;
f27=0;
f28=0;
f29=0;
f30=0;
rawhide=0;
unknown_release = 0;
# arch
alpha=0;
arm64=0;
arm=0;
ia64=0;
mips=0;
ppc=0;
s390=0;
sparc=0;
tilegx=0;
x86_32=0;
x86_64=0;
# sub arch
ppc_e=0;
ppc_f=0;
x86_32_e=0;
x86_32_f=0;
x86_64_e = 0;
x86_64_f = 0;
unknown_arch = 0;
centos = 0;
rhel = 0;
print olddate ",02-epel4,03-epel5,04-epel6,05-epel7,06-f03,07-f04,08-f05,09-f06,10-f07,11-f08,12-f09,13-f10,14-f11,15-f12,16-f13,17-f14,18-f15,19-f16,20-f17,21-f18,22-f19,23-f20,24-f21,25-f22,26-f23,27-f24,28-rawhide,29-unk_rel,30-epel,31-fedora,32-alpha,33-arm,34-arm64,35-ia64,36-mips,37-ppc,38-s390,39-sparc,40-tilegx,41-x86_32,42-x86_64,43-x86_32_e,44-x86_32_f,45-x86_64_e,46-x86_64_f,47-ppc_e,48-ppc_f,49-unk_arc,50-centos,51-rhel";
}
{
if ($1 == olddate) {
if ($3 ~"epel4") { epel4=epel4+1; epel=epel+1}
else if ($3 ~"epel5") { epel5=epel5+1; epel=epel+1}
else if ($3 ~"epel6") { epel6=epel6+1; epel=epel+1}
else if ($3 ~"epel7") { epel7=epel7+1; epel=epel+1}
else if ($3 ~"f03") { f03=f03+1; fedora=fedora+1}
else if ($3 ~"f04") { f04=f04+1; fedora=fedora+1}
else if ($3 ~"f05") { f05=f05+1; fedora=fedora+1}
else if ($3 ~"f06") { f06=f06+1; fedora=fedora+1}
else if ($3 ~"f07") { f07=f07+1; fedora=fedora+1}
else if ($3 ~"f08") { f08=f08+1; fedora=fedora+1}
else if ($3 ~"f09") { f09=f09+1; fedora=fedora+1}
else if ($3 ~"f10") { f10=f10+1; fedora=fedora+1}
else if ($3 ~"f11") { f11=f11+1; fedora=fedora+1}
else if ($3 ~"f12") { f12=f12+1; fedora=fedora+1}
else if ($3 ~"f13") { f13=f13+1; fedora=fedora+1}
else if ($3 ~"f14") { f14=f14+1; fedora=fedora+1}
else if ($3 ~"f15") { f15=f15+1; fedora=fedora+1}
else if ($3 ~"f16") { f16=f16+1; fedora=fedora+1}
else if ($3 ~"f17") { f17=f17+1; fedora=fedora+1}
else if ($3 ~"f18") { f18=f18+1; fedora=fedora+1}
else if ($3 ~"f19") { f19=f19+1; fedora=fedora+1}
else if ($3 ~"f20") { f20=f20+1; fedora=fedora+1}
else if ($3 ~"f21") { f21=f21+1; fedora=fedora+1}
else if ($3 ~"f22") { f22=f22+1; fedora=fedora+1}
else if ($3 ~"f23") { f23=f23+1; fedora=fedora+1}
else if ($3 ~"f24") { f24=f24+1; fedora=fedora+1}
else if ($3 ~"f25") { f25=f25+1; fedora=fedora+1}
else if ($3 ~"f26") { f26=f26+1; fedora=fedora+1}
else if ($3 ~"f27") { f27=f27+1; fedora=fedora+1}
else if ($3 ~"f28") { f28=f28+1; fedora=fedora+1}
else if ($3 ~"f29") { f29=f29+1; fedora=fedora+1}
else if ($3 ~"f30") { f30=f30+1; fedora=fedora+1}
else if ($3 ~"rawhide") { rawhide=rawhide+1; fedora=fedora+1}
else if ($3 ~"centos") { centos=centos+1; epel=epel+1}
else if ($3 ~"rhel") { rhel=rhel+1; epel=epel+1}
else { unknown_release = unknown_release + 1 ; };
## ARCH
if ($4 ~ "arm") { arm = arm + 1}
else if ($4 ~ "aarch64") { arm64 = arm64 +1 }
else if ($4 ~"ia64") { ia64 = ia64 + 1}
else if ($4 ~"mips") { mips = mips + 1}
else if ($4 ~"s390") { s390 = s390 +1 }
else if ($4 ~"sparc") { sparc = sparc +1 }
else if ($4 ~"tilegx") { tilegx = tilegx +1 }
else if (($4 ~"i386") && ($3 ~"epel")) { x86_32 = x86_32 + 1; x86_32_e = x86_32_e + 1}
else if (($4 ~"i386") && ($3 ~/rhel/)) { x86_32 = x86_32 + 1; x86_32_e = x86_32_e + 1}
else if (($4 ~"i386") && ($3 ~/centos/)) { x86_32 = x86_32 + 1; x86_32_e = x86_32_e + 1}
else if (($4 ~"i386") && ($3 ~/f[0-2]/)) { x86_32 = x86_32 + 1; x86_32_f = x86_32_f + 1}
else if (($4 ~"i386") && ($3 ~"rawhide")) { x86_32 = x86_32 + 1; x86_32_f = x86_32_f + 1}
else if (($4 ~"x86_64") && ($3 ~"epel")) { x86_64 = x86_64 + 1; x86_64_e = x86_64_e + 1; }
else if (($4 ~"x86_64") && ($3 ~/rhel/)) { x86_64 = x86_64 + 1; x86_64_e = x86_64_e + 1; }
else if (($4 ~"x86_64") && ($3 ~/centos/)) { x86_64 = x86_64 + 1; x86_64_e = x86_64_e + 1; }
else if (($4 ~"x86_64") && ($3 ~/f[0-2]/)) { x86_64 = x86_64 + 1; x86_64_f = x86_64_f + 1; }
else if (($4 ~"x86_64") && ($3 ~"rawhide")) { x86_64 = x86_64 + 1; x86_64_f = x86_64_f + 1; }
else if (($4 ~"ppc") && ($3 ~"epel")) { ppc = ppc + 1 ; ppc_e = ppc_e + 1;}
else if (($4 ~"ppc") && ($3 ~/f[0-2]/)) { ppc = ppc + 1 ; ppc_f = ppc_f + 1;}
else if (($4 ~"ppc") && ($3 ~"rawhide")) { ppc = ppc + 1 ; ppc_f = ppc_f + 1;}
else if ($4 ~/i386/) {x86_32 = x86_32 +1 ; }
else if ($4 ~/x86_64/) {x86_64 = x86_64 +1; }
else if ($4 ~/ppc/) {ppc = ppc +1}
else if ($4 ~"mips") { mips = mips +1 }
else if ($4 ~"alpha") { alpha = alpha +1 }
else {unknown_arch = unknown_arch +1; };
} else {
print olddate "," epel4 "," epel5 "," epel6 "," epel7 "," f03 "," f04 "," f05 "," f06 "," f07 "," f08 "," f09 "," f10 "," f11 "," f12 "," f13 "," f14 "," f15 "," f16 "," f17 "," f18 "," f19 "," f20 "," f21 "," f22 "," f23 "," f24 "," rawhide "," unknown_release "," epel "," fedora "," alpha "," arm "," arm64 "," ia64 "," mips "," ppc "," s390 "," sparc "," tilegx "," x86_32 "," x86_64 "," x86_32_e "," x86_32_f "," x86_64_e "," x86_64_f "," ppc_e "," ppc_f "," unknown_arch "," centos "," rhel;
olddate=$1
epel=0;
fedora=0;
epel4=0;
epel5=0;
epel6=0;
epel7=0;
f03=0;
f04=0;
f05=0;
f06=0;
f07=0;
f08=0;
f09=0;
f10=0;
f11=0;
f12=0;
f13=0;
f14=0;
f15=0;
f16=0;
f17=0;
f18=0;
f19=0;
f20=0;
f21=0;
f22=0;
f23=0;
f24=0;
f25=0;
f26=0;
f27=0;
f28=0;
f29=0;
f30=0;
rawhide=0;
unknown_release = 0;
# arch
arm=0;
arm64=0;
ia64=0;
mips=0;
ppc=0;
s390=0;
sparc=0;
tilegx=0;
x86_32=0;
x86_64=0;
# sub arch
ppc_e=0;
ppc_f=0;
x86_32_e=0;
x86_32_f=0;
x86_64_e = 0;
x86_64_f = 0;
unknown_arch = 0;
centos = 0;
rhel = 0;
}
}
END {
print olddate "," epel4 "," epel5 "," epel6 "," epel7 "," f03 "," f04 "," f05 "," f06 "," f07 "," f08 "," f09 "," f10 "," f11 "," f12 "," f13 "," f14 "," f15 "," f16 "," f17 "," f18 "," f19 "," f20 "," f21 "," f22 "," f23 "," f24 "," rawhide "," unknown_release "," epel "," fedora "," alpha "," arm "," arm64 "," ia64 "," mips "," ppc "," s390 "," sparc "," tilegx "," x86_32 "," x86_64 "," x86_32_e "," x86_32_f "," x86_64_e "," x86_64_f "," ppc_e "," ppc_f "," unknown_arch "," centos, "," rhel;
}