summaryrefslogtreecommitdiff
path: root/benchmarks/hbench/files
diff options
context:
space:
mode:
authoragc <agc>2001-10-26 12:54:24 +0000
committeragc <agc>2001-10-26 12:54:24 +0000
commitc01c272199b6f486e80553045a132b338382d140 (patch)
tree25b28f2017c9c89649e3baf604a29b443dc4de83 /benchmarks/hbench/files
parent9c7c6338aae94e51d034ecfa710aa5c372e0f86e (diff)
downloadpkgsrc-c01c272199b6f486e80553045a132b338382d140.tar.gz
As this script is called directly by the package Makefile, move it out
of the scripts directory, so that we don't confuse it with one of the automatically called scripts in bsd.pkg.mk
Diffstat (limited to 'benchmarks/hbench/files')
-rwxr-xr-xbenchmarks/hbench/files/do-install36
1 files changed, 36 insertions, 0 deletions
diff --git a/benchmarks/hbench/files/do-install b/benchmarks/hbench/files/do-install
new file mode 100755
index 00000000000..52973c63997
--- /dev/null
+++ b/benchmarks/hbench/files/do-install
@@ -0,0 +1,36 @@
+#!/bin/sh
+#
+# $NetBSD: do-install,v 1.1 2001/10/26 12:54:24 agc Exp $
+#
+
+cd $WRKSRC
+DIRS=`ls -d bin/*`
+SCRIPTS="argsort config.guess config.sub create-all-analyses create-all-latgraphs create-all-summaries depend gen-analysis gen-latgraph gen-summary getostype interactive-setup maindriver stats-full stats-single"
+DOCS="README benchmark-descriptions interpreting-results sigmetrics97-paper.ps.gz using-hbench"
+
+mkdir -p $PREFIX/bin/hbench
+mkdir -p $PREFIX/share/hbench
+mkdir -p $PREFIX/share/hbench/Results
+
+for basedir in $DIRS; do
+ OSDIR=`basename $basedir`
+ mkdir -p $PREFIX/bin/hbench/$OSDIR
+ /usr/bin/install -c -s -o bin -g bin -m 0755 bin/$OSDIR/* $PREFIX/bin/hbench/$OSDIR
+done
+
+for files in $SCRIPTS; do
+ /usr/bin/install -c -o bin -g bin -m 0755 scripts/$files $PREFIX/bin/hbench
+done
+mkdir -p $PREFIX/share/doc/hbench
+for files in $DOCS; do
+ /usr/bin/install -c -o bin -g bin -m 0444 doc/$files $PREFIX/share/doc/hbench
+done
+cat <<EOF >$PREFIX/bin/run-hbench
+#!/bin/sh
+${PREFIX}/bin/hbench/interactive-setup
+${PREFIX}/bin/hbench/maindriver ${PREFIX}/share/hbench/conf/`hostname`.run
+EOF
+chown bin:bin ${PREFIX}/bin/run-hbench
+chmod 0755 ${PREFIX}/bin/run-hbench
+cp Results/Makefile $PREFIX/share/hbench/Results
+cp -R conf $PREFIX/share/hbench