make it work on sunbroy2
authorisatest
Wed, 20 Sep 2006 14:00:25 +0200
changeset 20646 02729d4d6e4a
parent 20645 5e28b8f2cb52
child 20647 680b58597f65
make it work on sunbroy2
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