#!/bin/sh

# $Id: results,v 1.2 1995/10/26 04:05:37 lm Exp $

OS=`../scripts/os`
RESULTS=Results/$OS
BASE=../$RESULTS/`uname -n`
OUT=$BASE
EXT=0

if [ ! -d ../$RESULTS ]
then	mkdir -p ../$RESULTS
fi
while [ -f $OUT ]
do      EXT=`expr $EXT + 1`
	OUT=$BASE.$EXT
done

. ../bin/$OS/CONFIG

echo Results going to $OUT
cd ../bin/$OS && ../../scripts/lmbench 2>../$OUT

if [ X$MAIL = Xyes ]
then	echo Mailing results
	mail lmbench@slovax.engr.sgi.com < ../$OUT
fi
exit 0
