summaryrefslogtreecommitdiff
path: root/benchmarks/bytebench
diff options
context:
space:
mode:
authorhubertf <hubertf@pkgsrc.org>1998-12-03 01:27:04 +0000
committerhubertf <hubertf@pkgsrc.org>1998-12-03 01:27:04 +0000
commit0ddb865a760897ddd3cacb4126e797f5422868e3 (patch)
tree3fa3c2bfd0d7a166d4eed3970024e7df0a971f1a /benchmarks/bytebench
parent910aeb3ff8e3940a8de6d3b7c11671fd409aaa86 (diff)
downloadpkgsrc-0ddb865a760897ddd3cacb4126e797f5422868e3.tar.gz
make aware of BATCH (if interactive), uid (if benchmark needs to be run as root)
Diffstat (limited to 'benchmarks/bytebench')
-rw-r--r--benchmarks/bytebench/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/benchmarks/bytebench/Makefile b/benchmarks/bytebench/Makefile
index 5a367167528..85296a80b6e 100644
--- a/benchmarks/bytebench/Makefile
+++ b/benchmarks/bytebench/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 1998/09/23 16:01:36 agc Exp $
+# $NetBSD: Makefile,v 1.3 1998/12/03 01:27:05 hubertf Exp $
DISTNAME= byte
PKGNAME= bytebench-3.6
@@ -19,6 +19,7 @@ do-install:
${INSTALL_SCRIPT} ${WRKSRC}/run-byte ${PREFIX}/bin
benchmark:
+ @if [ `id -u` != 0 ]; then echo "This benchmark must be run as root!" ; exit 1 ; fi
@${WRKSRC}/run-byte
.include "../../mk/bsd.pkg.mk"