summaryrefslogtreecommitdiff
path: root/benchmarks/hbench/patches/patch-af
blob: 826164ffd4394fe7562e10f2694c5b10a4f83413 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-af,v 1.2 1998/09/23 16:56:01 agc Exp $
--- scripts/gen-latgraph.orig	Sat Sep  5 09:20:49 1998
+++ scripts/gen-latgraph	Sat Sep  5 09:22:07 1998
@@ -63,9 +63,6 @@
     ECHON= ; ECHOC='\c'
 fi
 
-# Step 1: Discover hbench root path
-HBENCHROOT=`(cd \`dirname $0\`/.. ; pwd)`
-
 # Step 2: Extract the parameters from each filename and get the data
 #         from the file, then put into the output file in proper format.
 STRIDES=`ls rd_* | sed 's/rd_[0-9]*_//g' | sort -n -r | uniq`
@@ -83,7 +80,7 @@
     do
         size=`echo $file |sed "s/^rd_//" | sed "s/_.*$//"`
 	size=`echo $size | awk '{print $1/1024;}'`
-	VAL=`${HBENCHROOT}/scripts/stats-single $file`
+	VAL=`@PREFIX@/bin/hbench/stats-single $file`
 	if [ `echo "$VAL $YMAX" | awk '{print ($1 > $2);}'` -gt 0 ]; then
 	    YMAX=$VAL
         fi