summaryrefslogtreecommitdiff
path: root/benchmarks/lmbench/patches/patch-ah
blob: 6f25535b281f308b23a7e6bd557ec1f835cd8ad5 (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
71
$NetBSD: patch-ah,v 1.1 1998/08/30 17:46:27 garbled Exp $
--- scripts/results.orig	Fri Jul 31 12:55:19 1998
+++ scripts/results	Sun Aug 30 08:42:03 1998
@@ -2,20 +2,20 @@
 
 # $Id: patch-ah,v 1.1 1998/08/30 17:46:27 garbled Exp $
 
-OS=`../scripts/os`
-CONFIG=`../scripts/config`
-RESULTS=results/$OS
-BASE=../$RESULTS/`uname -n`
+OS=`XXXPREFIXXXX/bin/lmbench/os`
+CONFIG=`XXXPREFIXXXX/bin/lmbench/config`
+RESULTS=XXXPREFIXXXX/share/lmbench/results/$OS
+BASE=$RESULTS/`uname -n`
 EXT=0
 
-if [ ! -f "../bin/$OS/$CONFIG" ]
+if [ ! -f "XXXPREFIXXXX/share/lmbench/$CONFIG" ]
 then	echo "No config file?"
 	exit 1
 fi
-. ../bin/$OS/$CONFIG
+. XXXPREFIXXXX/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 XXXPREFIXXXX/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 &
+		XXXPREFIXXXX/bin/lmbench/lmbench XXXPREFIXXXX/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}
+	XXXPREFIXXXX/bin/lmbench/lmbench XXXPREFIXXXX/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