summaryrefslogtreecommitdiff
path: root/benchmarks/lmbench/patches/patch-ai
blob: 7407a3fe0afb224958b83a11e7ad54ef76df9a28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
$NetBSD: patch-ai,v 1.4 2005/05/23 08:55:56 rillig Exp $

--- scripts/lmbench.orig	Fri Jul 31 21:55:19 1998
+++ scripts/lmbench	Mon Nov 15 14:21:29 1999
@@ -8,6 +8,6 @@
 
 # Make sure we can find: ./cmd, df, and netstat
-PATH=.:../../scripts:$PATH:/etc:/usr/etc:/sbin:/usr/sbin
+PATH=.:@PREFIX@/bin/lmbench:$PATH:/etc:/usr/etc:/sbin:/usr/sbin
 export PATH
 
 if [ -f $1 ]
@@ -179,9 +179,9 @@
 if [ $MP = Y ]; then synchronize $SYNC/lat_unix; fi
 lat_unix
 if [ $MP = Y ]
-then	if [ $SYNC_MAX = $SYNC_PID ]; then cp hello /tmp/hello; fi
+then	if [ $SYNC_MAX = $SYNC_PID ]; then cp @PREFIX@/bin/lmbench/hello /tmp/hello; fi
 	synchronize $SYNC/lat_proc
-else	cp hello /tmp/hello
+else	cp @PREFIX@/bin/lmbench/hello /tmp/hello
 fi
 lat_proc fork
 lat_proc exec
@@ -225,14 +225,14 @@
 if [ $SYNC_PID = $SYNC_MAX ]
 then	date > /dev/tty
 	echo Local networking > /dev/tty
-	if [ ! -d ../../src/webpage-lm ]
+	if [ ! -d @PREFIX@/share/lmbench/webpage-lm ]
 	then	(cd ../../src && tar xf webpage-lm.tar)
 		sync
 		sleep 1
 	fi
 	SERVERS="lat_udp lat_tcp lat_rpc lat_connect bw_tcp"
 	for server in $SERVERS; do $server -s; done
-	DOCROOT=../../src/webpage-lm lmhttp 8008 &
+	DOCROOT=@PREFIX@/share/lmbench/webpage-lm lmhttp 8008 &
 	sleep 2;
 	for i in localhost
 	do
@@ -246,14 +246,14 @@
 		bw_tcp $i
 		bw_tcp -$i
 		# I want a hot cache number
-		lat_http $i 8008 < ../../src/webpage-lm/URLS > /dev/null 2>&1
-		lat_http $i 8008 < ../../src/webpage-lm/URLS
+		lat_http $i 8008 < @PREFIX@/share/lmbench/webpage-lm/URLS > /dev/null 2>&1
+		lat_http $i 8008 < @PREFIX@/share/lmbench/webpage-lm/URLS
 		lat_http -$i 8008
 	done
 
 	for remote in $REMOTE 
 	do	echo Networking to $remote > /dev/tty
-		rcp $SERVERS lmhttp ../../src/webpage-lm.tar ${remote}:/tmp
+		rcp $SERVERS lmhttp @PREFIX@/share/lmbench/webpage-lm.tar ${remote}:/tmp
 		for server in $SERVERS
 		do	$RSH $remote -n /tmp/$server -s &
 		done
@@ -266,8 +266,8 @@
 		lat_connect $remote; lat_connect -$remote;
 		bw_tcp $remote; bw_tcp -$remote 
 		# I want a hot cache number
-		lat_http $remote 8008 < ../../src/webpage-lm/URLS > /dev/null 2>&1
-		lat_http $remote 8008 < ../../src/webpage-lm/URLS
+		lat_http $remote 8008 < @PREFIX@/share/lmbench/webpage-lm/URLS > /dev/null 2>&1
+		lat_http $remote 8008 < @PREFIX@/share/lmbench/webpage-lm/URLS
 		lat_http -$remote 8008
 		RM=
 		for server in $SERVERS