summaryrefslogtreecommitdiff
path: root/benchmarks/lmbench/patches/patch-af
diff options
context:
space:
mode:
Diffstat (limited to 'benchmarks/lmbench/patches/patch-af')
-rw-r--r--benchmarks/lmbench/patches/patch-af40
1 files changed, 20 insertions, 20 deletions
diff --git a/benchmarks/lmbench/patches/patch-af b/benchmarks/lmbench/patches/patch-af
index b0c6f103201..ca7fffca509 100644
--- a/benchmarks/lmbench/patches/patch-af
+++ b/benchmarks/lmbench/patches/patch-af
@@ -1,4 +1,4 @@
-$NetBSD: patch-af,v 1.1 1998/08/30 17:46:26 garbled Exp $
+$NetBSD: patch-af,v 1.2 1998/09/24 08:45:00 agc Exp $
--- scripts/config-run.orig Fri Jul 31 12:55:19 1998
+++ scripts/config-run Sun Aug 30 08:08:52 1998
@@ -3,7 +3,7 @@
@@ -6,7 +6,7 @@ $NetBSD: patch-af,v 1.1 1998/08/30 17:46:26 garbled Exp $
# 1.23 98/07/31 lm@lm.bitmover.com
-OS=`../scripts/os`
-+OS=`XXXPREFIXXXX/bin/lmbench/os`
++OS=`@PREFIX@/bin/lmbench/os`
L='====================================================================='
echo $L;
cat<<EOF;
@@ -16,24 +16,24 @@ $NetBSD: patch-af,v 1.1 1998/08/30 17:46:26 garbled Exp $
echo "Hang on, we are calculating your timing granularity."
-../bin/$OS/msleep 250
-ENOUGH=`../bin/$OS/enough`
-+XXXPREFIXXXX/bin/lmbench/msleep 250
-+ENOUGH=`XXXPREFIXXXX/bin/lmbench/enough`
++@PREFIX@/bin/lmbench/msleep 250
++ENOUGH=`@PREFIX@/bin/lmbench/enough`
export ENOUGH
echo "OK, it looks like you can time stuff down to $ENOUGH usec resolution."
echo ""
echo "Hang on, we are calculating your timing overhead."
-../bin/$OS/msleep 250
-TIMING_O=`../bin/$OS/timing_o`
-+XXXPREFIXXXX/bin/lmbench/msleep 250
-+TIMING_O=`XXXPREFIXXXX/bin/lmbench/timing_o`
++@PREFIX@/bin/lmbench/msleep 250
++TIMING_O=`@PREFIX@/bin/lmbench/timing_o`
export TIMING_O
echo "OK, it looks like your gettimeofday() costs $TIMING_O usecs."
echo ""
echo "Hang on, we are calculating your loop overhead."
-../bin/$OS/msleep 250
-LOOP_O=`../bin/$OS/loop_o`
-+XXXPREFIXXXX/bin/lmbench/msleep 250
-+LOOP_O=`XXXPREFIXXXX/bin/lmbench/loop_o`
++@PREFIX@/bin/lmbench/msleep 250
++LOOP_O=`@PREFIX@/bin/lmbench/loop_o`
export LOOP_O
echo "OK, it looks like your benchmark loop costs $LOOP_O usecs."
echo ""
@@ -44,9 +44,9 @@ $NetBSD: patch-af,v 1.1 1998/08/30 17:46:26 garbled Exp $
-AVAILMEM=`../bin/$OS/memsize $MB`
-AVAILMEM=`../bin/$OS/memsize $MB`
-AVAILMEM=`../bin/$OS/memsize $MB`
-+AVAILMEM=`XXXPREFIXXXX/bin/lmbench/memsize $MB`
-+AVAILMEM=`XXXPREFIXXXX/bin/lmbench/memsize $MB`
-+AVAILMEM=`XXXPREFIXXXX/bin/lmbench/memsize $MB`
++AVAILMEM=`@PREFIX@/bin/lmbench/memsize $MB`
++AVAILMEM=`@PREFIX@/bin/lmbench/memsize $MB`
++AVAILMEM=`@PREFIX@/bin/lmbench/memsize $MB`
if [ $AVAILMEM -lt 8 ]
then echo $0 aborted: Not enough memory, only ${AVAILMEM}MB available.
exit 1
@@ -55,7 +55,7 @@ $NetBSD: patch-af,v 1.1 1998/08/30 17:46:26 garbled Exp $
for i in $disks
do if [ -r $i ]
- then ../bin/$OS/flushdisk $i
-+ then XXXPREFIXXXX/bin/lmbench/flushdisk $i
++ then @PREFIX@/bin/lmbench/flushdisk $i
if [ $? -eq 1 ]
then echo "Must be root to run disk benchmarks."
echo "Root is needed to flush the buffer cache"
@@ -64,7 +64,7 @@ $NetBSD: patch-af,v 1.1 1998/08/30 17:46:26 garbled Exp $
echo ""
echo "Calculating mhz, please wait for a moment..."
-MHZ=`../bin/$OS/mhz`
-+MHZ=`XXXPREFIXXXX/bin/lmbench/mhz`
++MHZ=`@PREFIX@/bin/lmbench/mhz`
cat > /dev/tty <<EOF
I think your CPU mhz is
@@ -73,14 +73,14 @@ $NetBSD: patch-af,v 1.1 1998/08/30 17:46:26 garbled Exp $
esac
-INFO=`../scripts/info`
-+INFO=`XXXPREFIXXXX/bin/lmbench/info`
++INFO=`@PREFIX@/bin/lmbench/info`
if [ $MAIL = yes ]
-then if [ ! -f ../bin/$OS/$INFO ]
- then cp ../scripts/info-template ../bin/$OS/$INFO
- chmod +w ../bin/$OS/$INFO
+then if [ ! -f $INFO ]
-+ then cp XXXPREFIXXXX/bin/lmbench/info-template XXXPREFIXXXX/share/lmbench/$INFO
-+ chmod +w XXXPREFIXXXX/share/lmbench/$INFO
++ then cp @PREFIX@/bin/lmbench/info-template @PREFIX@/share/lmbench/$INFO
++ chmod +w @PREFIX@/share/lmbench/$INFO
REUSE=no
else
REUSE=view
@@ -89,7 +89,7 @@ $NetBSD: patch-af,v 1.1 1998/08/30 17:46:26 garbled Exp $
[Vv]*) REUSE=view
echo $L
- more ../bin/$OS/$INFO
-+ more XXXPREFIXXXX/share/lmbench/$INFO
++ more @PREFIX@/share/lmbench/$INFO
echo $L
;;
*) REUSE=yes
@@ -98,7 +98,7 @@ $NetBSD: patch-af,v 1.1 1998/08/30 17:46:26 garbled Exp $
fi
if [ X$EDITOR != "none" ]
- then $EDITOR ../bin/$OS/`../scripts/info`
-+ then $EDITOR XXXPREFIXXXX/share/lmbench/`XXXPREFIXXXX/share/lmbench/info`
++ then $EDITOR @PREFIX@/share/lmbench/`@PREFIX@/share/lmbench/info`
fi
fi
fi
@@ -107,8 +107,8 @@ $NetBSD: patch-af,v 1.1 1998/08/30 17:46:26 garbled Exp $
EOF
-VERSION=`../scripts/version`
-+VERSION=`XXXPREFIXXXX/bin/lmbench/version`
-+CONFIG=XXXPREFIXXXX/share/lmbench/`XXXPREFIXXXX/bin/lmbench/config`
++VERSION=`@PREFIX@/bin/lmbench/version`
++CONFIG=@PREFIX@/share/lmbench/`@PREFIX@/bin/lmbench/config`
-cat<<EOF > ../bin/$OS/`../scripts/config`
+cat <<EOF >$CONFIG