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-af35
1 files changed, 18 insertions, 17 deletions
diff --git a/benchmarks/lmbench/patches/patch-af b/benchmarks/lmbench/patches/patch-af
index ca7fffca509..a0a5b1fb33c 100644
--- a/benchmarks/lmbench/patches/patch-af
+++ b/benchmarks/lmbench/patches/patch-af
@@ -1,4 +1,5 @@
-$NetBSD: patch-af,v 1.2 1998/09/24 08:45:00 agc Exp $
+$NetBSD: patch-af,v 1.3 2006/08/31 18:04:08 rillig 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 +7,7 @@ $NetBSD: patch-af,v 1.2 1998/09/24 08:45:00 agc Exp $
# 1.23 98/07/31 lm@lm.bitmover.com
-OS=`../scripts/os`
-+OS=`@PREFIX@/bin/lmbench/os`
++OS=`@PREFIX@/libexec/lmbench/os`
L='====================================================================='
echo $L;
cat<<EOF;
@@ -16,24 +17,24 @@ $NetBSD: patch-af,v 1.2 1998/09/24 08:45:00 agc Exp $
echo "Hang on, we are calculating your timing granularity."
-../bin/$OS/msleep 250
-ENOUGH=`../bin/$OS/enough`
-+@PREFIX@/bin/lmbench/msleep 250
-+ENOUGH=`@PREFIX@/bin/lmbench/enough`
++@PREFIX@/libexec/lmbench/msleep 250
++ENOUGH=`@PREFIX@/libexec/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`
-+@PREFIX@/bin/lmbench/msleep 250
-+TIMING_O=`@PREFIX@/bin/lmbench/timing_o`
++@PREFIX@/libexec/lmbench/msleep 250
++TIMING_O=`@PREFIX@/libexec/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`
-+@PREFIX@/bin/lmbench/msleep 250
-+LOOP_O=`@PREFIX@/bin/lmbench/loop_o`
++@PREFIX@/libexec/lmbench/msleep 250
++LOOP_O=`@PREFIX@/libexec/lmbench/loop_o`
export LOOP_O
echo "OK, it looks like your benchmark loop costs $LOOP_O usecs."
echo ""
@@ -44,9 +45,9 @@ $NetBSD: patch-af,v 1.2 1998/09/24 08:45:00 agc Exp $
-AVAILMEM=`../bin/$OS/memsize $MB`
-AVAILMEM=`../bin/$OS/memsize $MB`
-AVAILMEM=`../bin/$OS/memsize $MB`
-+AVAILMEM=`@PREFIX@/bin/lmbench/memsize $MB`
-+AVAILMEM=`@PREFIX@/bin/lmbench/memsize $MB`
-+AVAILMEM=`@PREFIX@/bin/lmbench/memsize $MB`
++AVAILMEM=`@PREFIX@/libexec/lmbench/memsize $MB`
++AVAILMEM=`@PREFIX@/libexec/lmbench/memsize $MB`
++AVAILMEM=`@PREFIX@/libexec/lmbench/memsize $MB`
if [ $AVAILMEM -lt 8 ]
then echo $0 aborted: Not enough memory, only ${AVAILMEM}MB available.
exit 1
@@ -55,7 +56,7 @@ $NetBSD: patch-af,v 1.2 1998/09/24 08:45:00 agc Exp $
for i in $disks
do if [ -r $i ]
- then ../bin/$OS/flushdisk $i
-+ then @PREFIX@/bin/lmbench/flushdisk $i
++ then @PREFIX@/libexec/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 +65,7 @@ $NetBSD: patch-af,v 1.2 1998/09/24 08:45:00 agc Exp $
echo ""
echo "Calculating mhz, please wait for a moment..."
-MHZ=`../bin/$OS/mhz`
-+MHZ=`@PREFIX@/bin/lmbench/mhz`
++MHZ=`@PREFIX@/libexec/lmbench/mhz`
cat > /dev/tty <<EOF
I think your CPU mhz is
@@ -73,13 +74,13 @@ $NetBSD: patch-af,v 1.2 1998/09/24 08:45:00 agc Exp $
esac
-INFO=`../scripts/info`
-+INFO=`@PREFIX@/bin/lmbench/info`
++INFO=`@PREFIX@/libexec/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 @PREFIX@/bin/lmbench/info-template @PREFIX@/share/lmbench/$INFO
++ then cp @PREFIX@/libexec/lmbench/info-template @PREFIX@/share/lmbench/$INFO
+ chmod +w @PREFIX@/share/lmbench/$INFO
REUSE=no
else
@@ -107,8 +108,8 @@ $NetBSD: patch-af,v 1.2 1998/09/24 08:45:00 agc Exp $
EOF
-VERSION=`../scripts/version`
-+VERSION=`@PREFIX@/bin/lmbench/version`
-+CONFIG=@PREFIX@/share/lmbench/`@PREFIX@/bin/lmbench/config`
++VERSION=`@PREFIX@/libexec/lmbench/version`
++CONFIG=@PREFIX@/share/lmbench/`@PREFIX@/libexec/lmbench/config`
-cat<<EOF > ../bin/$OS/`../scripts/config`
+cat <<EOF >$CONFIG