Index: plot.sh =================================================================== --- plot.sh (nonexistent) +++ plot.sh (revision 12895) @@ -0,0 +1,43 @@ +#!/bin/sh + +awk ' + BEGIN { + dt = 0 + print "set format x \"\"" > "plot1" + print "set format x \"\"" > "plot2" + print "set xlabel \"\"" > "plot1" + print "set xlabel \"\"" > "plot2" + print "set ylabel \"lines of code\"" > "plot1" + print "set ylabel \"%\"" > "plot2" + print "set yrange [0:300000]" > "plot1" + print "set yrange [0:100]" > "plot2" + } + /^20..-/ { + getline old + getline new + getline perc + sub("^old: *", "", old) + sub("^new: *", "", new) + print old > "data.old" + print new > "data.new" + print old+new > "data.total" + print perc > "data.perc" + + if (dt % 4 == 0) { + split($1, A, "-") + when=A[1] "-" sprintf("%02d", A[2]) + print "set label \"" when "\" at " dt ",0 rotate right" > "plot1" + print "set label \"" when "\" at " dt ",0 rotate right" > "plot2" + } + dt++ + } + + END { + print "set bmargin 6" > "plot1" + print "set bmargin 6" > "plot2" + print "plot \"data.total\" with filledcurve x1, \"data.new\" with filledcurve x1;" > "plot1" + print "plot \"data.perc\" with lines" > "plot2" + } + +' < log + Property changes on: plot.sh ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property