pkgsrc/benchmarks/lmbench/patches/patch-ag

19 lines
575 B
Text

$NetBSD: patch-ag,v 1.3 2006/08/31 18:04:08 rillig Exp $
--- scripts/os.orig Sun Aug 30 05:38:55 1998
+++ scripts/os Sun Aug 30 05:40:06 1998
@@ -1,10 +1,10 @@
#!/bin/sh
OS=bloat-os
-if [ -f ../scripts/gnu-os ]
-then OS=`../scripts/gnu-os | sed s/unknown-//`
+if [ -f @PREFIX@/libexec/lmbench/gnu-os ]
+then OS=`@PREFIX@/libexec/lmbench/gnu-os | sed s/unknown-//`
fi
-if [ -f ../../scripts/gnu-os ]
-then OS=`../../scripts/gnu-os | sed s/unknown-//`
+if [ -f @PREFIX@/libexec/lmbench/gnu-os ]
+then OS=`@PREFIX@/libexec/lmbench/gnu-os | sed s/unknown-//`
fi
echo $OS