*BSD News Article 9056


Return to BSD News archive

Xref: sserve comp.windows.x.i386unix:53 comp.unix.bsd:9113
Newsgroups: comp.windows.x.i386unix,comp.unix.bsd
Path: sserve!manuel.anu.edu.au!munnari.oz.au!sgiblab!spool.mu.edu!yale.edu!qt.cs.utexas.edu!cs.utexas.edu!newsfeed.rice.edu!rice!news.Rice.edu!rich
From: rich@Rice.edu (& Murphey)
Subject: [386BSD, XFree86] xbench patches
Message-ID: <RICH.92Dec17132406@superego.Rice.edu>
Sender: news@rice.edu (News)
Reply-To: Rich@rice.edu
Organization: Department of Electrical and Computer Engineering, Rice
	University
Date: Thu, 17 Dec 1992 19:24:06 GMT
Lines: 140


Here are patches that make xbench generate postscript reports on
386bsd.  To generate the report invoke 'make print' after you have put
your xbench output in results/*.out.  Rich


*** /tmp/,RCSt1008443	Thu Dec 17 13:18:40 1992
--- Imakefile	Thu Dec 17 13:13:46 1992
***************
*** 5,11 ****
   *
   * the line below is for our local machine
   */
! TROFF=troff -Tpsc -ms | psdit | psprint
  /*
   * to use nroff uncomment next line and comment prev. line
   */
--- 5,11 ----
   *
   * the line below is for our local machine
   */
! TROFF=groff -Tps -C |lpr
  /*
   * to use nroff uncomment next line and comment prev. line
   */
*** /tmp/,RCSt1007610	Thu Dec 17 10:54:51 1992
--- scripts/Make.proto	Thu Dec 17 10:34:53 1992
***************
*** 26,32 ****
  	-sh ../scripts/insSep.sh < summary.sorted > summary.tbl
  
  summary.ms: link summary.tbl
! 	cat ../scripts/prefix.ms summary.tbl ../scripts/postfix.ms > summary.ms
  	-(if grep "(2)" summary.ms > /dev/null; then\
  	    echo ".br" >> summary.ms; \
  	    echo "(2) corrupted benchmark data file" >> summary.ms ; \
--- 26,32 ----
  	-sh ../scripts/insSep.sh < summary.sorted > summary.tbl
  
  summary.ms: link summary.tbl
! 	-sh ../scripts/post.sh ../scripts/prefix.ms summary.tbl ../scripts/postfix.ms > summary.ms
  	-(if grep "(2)" summary.ms > /dev/null; then\
  	    echo ".br" >> summary.ms; \
  	    echo "(2) corrupted benchmark data file" >> summary.ms ; \
***************
*** 36,40 ****
  detail.ms:  link
  	    -rm detail.ms
  	    -(for i in *.out; do     \
! 		awk -f ../scripts/detail.awk < $$i >> detail.ms ; \
  	      done)
--- 36,40 ----
  detail.ms:  link
  	    -rm detail.ms
  	    -(for i in *.out; do     \
! 		awk -f ../scripts/detail.awk < $$i | sh ../scripts/post.sh >> detail.ms ; \
  	      done)
*** /tmp/,RCSt1007610	Thu Dec 17 10:54:52 1992
--- scripts/detail.awk	Thu Dec 17 10:29:19 1992
***************
*** 257,265 ****
  		       print ".fi" ;
  		       print ".sp" ;
  		       print ".TS" ;
! 		       print ".box, tab(!);"    ;
! 		       print "l | c | c | c | c | r"
! 		       print "l | r | r | r | r | r."
  		       print "test!10!100!400!!"
  		       print "="
  		       print "lines!" value["line10"] "!" value["line100"] "!" value["line400"] "!!lines/sec"
--- 257,266 ----
  		       print ".fi" ;
  		       print ".sp" ;
  		       print ".TS" ;
! #		       print ".box, tab(!);"    ;
! 		       print "| l | c | c | c | c | r |"
! 		       print "| l | r | r | r | r | r |."
! 		       print "_"
  		       print "test!10!100!400!!"
  		       print "="
  		       print "lines!" value["line10"] "!" value["line100"] "!" value["line400"] "!!lines/sec"
*** /tmp/,RCSt1007610	Thu Dec 17 10:54:52 1992
--- scripts/insSep.sh	Thu Dec 17 10:44:33 1992
***************
*** 6,14 ****
  
  read line
  echo $line;
  read line                  
  while [ "$line" != "" ]; do       
-    echo "_"                     
     echo $line                  
     read line                  
  done
--- 6,16 ----
  
  read line
  echo $line;
+ echo "_"                     
  read line                  
  while [ "$line" != "" ]; do       
     echo $line                  
+    echo "_"                     
+    line=
     read line                  
  done
diff -c -r1.1 prefix.ms
*** /tmp/,RCSt1007610	Thu Dec 17 10:54:52 1992
--- scripts/prefix.ms	Thu Dec 17 10:30:31 1992
***************
*** 55,62 ****
  field are monochrome.
  .sp
  .TS
! .box, tab(!);
! l | c | c | c | c | c | c | c | c | c
! l | r | c | r | r | r | r | r | r | r.
  machine!p!comm!line!fill!blt!text!arc!cmplx!xstones
  =
--- 55,62 ----
  field are monochrome.
  .sp
  .TS
! | l | c | c | c | c | c | c | c | c | c |
! | l | r | c | r | r | r | r | r | r | r |.
! _
  machine!p!comm!line!fill!blt!text!arc!cmplx!xstones
  =
*** /dev/null	Thu Dec 17 13:03:30 1992
--- scripts/post.sh	Thu Dec 17 10:36:12 1992
***************
*** 0 ****
--- 1,7 ----
+ #!/bin/sh
+ 
+ #
+ # convert ! characters to tabs
+ #
+ 
+ sed -e 's/!/	/g' $*