make it work on sunbroy2
authorisatest
Wed Sep 20 14:00:25 2006 +0200 (2006-09-20)
changeset 2064602729d4d6e4a
parent 20645 5e28b8f2cb52
child 20647 680b58597f65
make it work on sunbroy2
Admin/isatest-statistics
     1.1 --- a/Admin/isatest-statistics	Wed Sep 20 13:56:39 2006 +0200
     1.2 +++ b/Admin/isatest-statistics	Wed Sep 20 14:00:25 2006 +0200
     1.3 @@ -7,6 +7,16 @@
     1.4  
     1.5  ISATEST_LOG=~isatest/log
     1.6  
     1.7 +## platform settings
     1.8 +
     1.9 +case $(uname) in
    1.10 +	SunOS)	
    1.11 +		ZGREP=xgrep 
    1.12 +	;;
    1.13 +	*)	
    1.14 +		ZGREP=zgrep
    1.15 +	;;
    1.16 +esac
    1.17  
    1.18  ## diagnostics
    1.19  
    1.20 @@ -47,7 +57,7 @@
    1.21  SESSION_DATA="/tmp/isatest$$.dat"
    1.22  mkdir -p "$DIR" || fail "Bad directory: $DIR"
    1.23  
    1.24 -zgrep "^Finished .*elapsed" \
    1.25 +$ZGREP "^Finished .*elapsed" \
    1.26    $(find "$ISATEST_LOG" -name "isatest-makeall-${PLATFORM}*" -ctime "-${TIMESPAN}") | \
    1.27  perl -e '
    1.28    while (<>) {
    1.29 @@ -72,7 +82,7 @@
    1.30  set timefmt "%Y-%m-%d"
    1.31  set format x "%d-%b"
    1.32  set xlabel "$SESSION"
    1.33 -plot [] [0:] "$SESSION_DATA" using 2:3 title "" smooth sbezier, "$SESSION_DATA" using 2:3 title "" smooth csplines
    1.34 +plot [] [0:] "$SESSION_DATA" using 2:3 smooth sbezier notitle, "$SESSION_DATA" using 2:3 smooth csplines notitle
    1.35  EOF
    1.36  done
    1.37