diff options
author | hubertf <hubertf> | 1998-12-03 01:27:04 +0000 |
---|---|---|
committer | hubertf <hubertf> | 1998-12-03 01:27:04 +0000 |
commit | 1e38c33743bdad5e0dd20821f8c999592a4ab5cc (patch) | |
tree | 3fa3c2bfd0d7a166d4eed3970024e7df0a971f1a /benchmarks/hbench/Makefile | |
parent | 7a493fdab2e2737af8cd6809dbf9d4ec31d57b7a (diff) | |
download | pkgsrc-1e38c33743bdad5e0dd20821f8c999592a4ab5cc.tar.gz |
make aware of BATCH (if interactive), uid (if benchmark needs to be run as root)
Diffstat (limited to 'benchmarks/hbench/Makefile')
-rw-r--r-- | benchmarks/hbench/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/benchmarks/hbench/Makefile b/benchmarks/hbench/Makefile index fcaf90eb854..2bbdf40830a 100644 --- a/benchmarks/hbench/Makefile +++ b/benchmarks/hbench/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.5 1998/11/16 11:27:54 agc Exp $ +# $NetBSD: Makefile,v 1.6 1998/12/03 01:27:05 hubertf Exp $ DISTNAME= hbench-OS-1.0 PKGNAME= hbench-1.0 @@ -41,6 +41,7 @@ do-install: @${SETENV} PREFIX=${PREFIX} WRKSRC=${WRKSRC} ${SCRIPTDIR}/do-install benchmark: + @if [ `id -u` != 0 ]; then echo "This benchmark must be run as root!" ; exit 1 ; fi @cd ${WRKSRC}; \ ${SED} -e 's|@pwd@|'`/bin/pwd`'|g' \ -e 's|@hostname@|'`/bin/hostname -s`'|g' \ |