d821c93ad1
PKGREVISION.
69 lines
1.9 KiB
Text
69 lines
1.9 KiB
Text
$NetBSD: patch-ah,v 1.5 2006/08/31 18:04:08 rillig Exp $
|
|
|
|
--- scripts/results.orig Fri Jul 31 21:55:19 1998
|
|
+++ scripts/results Mon Nov 15 14:19:57 1999
|
|
@@ -5,17 +5,17 @@
|
|
-OS=`../scripts/os`
|
|
-CONFIG=`../scripts/config`
|
|
-RESULTS=results/$OS
|
|
-BASE=../$RESULTS/`uname -n`
|
|
+OS=`@PREFIX@/libexec/lmbench/os`
|
|
+CONFIG=`@PREFIX@/libexec/lmbench/config`
|
|
+RESULTS=@PREFIX@/share/lmbench/results/$OS
|
|
+BASE=$RESULTS/`uname -n`
|
|
EXT=0
|
|
|
|
-if [ ! -f "../bin/$OS/$CONFIG" ]
|
|
+if [ ! -f "@PREFIX@/share/lmbench/$CONFIG" ]
|
|
then echo "No config file?"
|
|
exit 1
|
|
fi
|
|
-. ../bin/$OS/$CONFIG
|
|
+. @PREFIX@/share/lmbench/$CONFIG
|
|
|
|
-if [ ! -d ../$RESULTS ]
|
|
-then mkdir -p ../$RESULTS
|
|
+if [ ! -d $RESULTS ]
|
|
+then mkdir -p $RESULTS
|
|
fi
|
|
RESULTS=$BASE
|
|
while [ -f $RESULTS ]
|
|
@@ -23,33 +23,33 @@
|
|
RESULTS=$BASE.$EXT
|
|
done
|
|
|
|
-cd ../bin/$OS
|
|
+cd @PREFIX@/share/lmbench/results/$OS
|
|
if [ "X$SYNC_MAX" = X ]; then echo "No SYNC_MAX variable."; exit 1; fi
|
|
if [ $SYNC_MAX -gt 1 ]
|
|
then SYNC_PID=1; export SYNC_PID
|
|
while [ $SYNC_PID -le $SYNC_MAX ]
|
|
do echo Results $SYNC_PID going to ${RESULTS}.$SYNC_PID
|
|
- ../../scripts/lmbench $CONFIG 2>../${RESULTS}.$SYNC_PID &
|
|
+ @PREFIX@/libexec/lmbench/lmbench @PREFIX@/share/lmbench/$CONFIG 2>${RESULTS}.$SYNC_PID &
|
|
SYNC_PID=`expr $SYNC_PID + 1`
|
|
done; wait
|
|
else echo Results going to ${RESULTS}
|
|
SYNC_PID=1
|
|
SYNC_MAX=1
|
|
export SYNC_PID SYNC_MAX
|
|
- ../../scripts/lmbench $CONFIG 2>../${RESULTS}
|
|
+ @PREFIX@/libexec/lmbench/lmbench @PREFIX@/share/lmbench/$CONFIG 2>${RESULTS}
|
|
fi
|
|
|
|
if [ X$MAIL = Xyes ]
|
|
then echo Mailing results
|
|
if [ $SYNC_MAX -gt 1 ]
|
|
then (echo ---- $INFO ---; cat $INFO;
|
|
- for i in ../${RESULTS}.*
|
|
+ for i in ${RESULTS}.*
|
|
do echo ---- $i ----; cat $i
|
|
done) | mail lmbench2@bitmover.com
|
|
else (echo ---- $INFO ---
|
|
cat $INFO
|
|
echo ---- $RESULTS ---
|
|
- cat ../$RESULTS) | mail lmbench2@bitmover.com
|
|
+ cat $RESULTS) | mail lmbench2@bitmover.com
|
|
fi
|
|
fi
|
|
exit 0
|