# HG changeset patch # User isatest # Date 1158753625 -7200 # Node ID 02729d4d6e4aa840d645b61d57311aa432c30f63 # Parent 5e28b8f2cb525203f2bc55c790c02ddb7859b014 make it work on sunbroy2 diff -r 5e28b8f2cb52 -r 02729d4d6e4a Admin/isatest-statistics --- a/Admin/isatest-statistics Wed Sep 20 13:56:39 2006 +0200 +++ b/Admin/isatest-statistics Wed Sep 20 14:00:25 2006 +0200 @@ -7,6 +7,16 @@ ISATEST_LOG=~isatest/log +## platform settings + +case $(uname) in + SunOS) + ZGREP=xgrep + ;; + *) + ZGREP=zgrep + ;; +esac ## diagnostics @@ -47,7 +57,7 @@ SESSION_DATA="/tmp/isatest$$.dat" mkdir -p "$DIR" || fail "Bad directory: $DIR" -zgrep "^Finished .*elapsed" \ +$ZGREP "^Finished .*elapsed" \ $(find "$ISATEST_LOG" -name "isatest-makeall-${PLATFORM}*" -ctime "-${TIMESPAN}") | \ perl -e ' while (<>) { @@ -72,7 +82,7 @@ set timefmt "%Y-%m-%d" set format x "%d-%b" set xlabel "$SESSION" -plot [] [0:] "$SESSION_DATA" using 2:3 title "" smooth sbezier, "$SESSION_DATA" using 2:3 title "" smooth csplines +plot [] [0:] "$SESSION_DATA" using 2:3 smooth sbezier notitle, "$SESSION_DATA" using 2:3 smooth csplines notitle EOF done