diff options
author | garbled <garbled> | 1998-09-05 22:02:19 +0000 |
---|---|---|
committer | garbled <garbled> | 1998-09-05 22:02:19 +0000 |
commit | 97d11e3a7cb797c2436e1aae7b86485fa9d6cabd (patch) | |
tree | ed4f8f7e72bda7953411cca2f76f81d77b33fd96 /benchmarks/hbench/scripts/do-install | |
parent | f1d2bee94bf37e223fa3bac138d499f3602e17a0 (diff) | |
download | pkgsrc-97d11e3a7cb797c2436e1aae7b86485fa9d6cabd.tar.gz |
New pkg for hbench-OS-1.0 (hi matt!)
a suite of portable benchmarks to measure the OS and the hardware.
Diffstat (limited to 'benchmarks/hbench/scripts/do-install')
-rwxr-xr-x | benchmarks/hbench/scripts/do-install | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/benchmarks/hbench/scripts/do-install b/benchmarks/hbench/scripts/do-install new file mode 100755 index 00000000000..9ef753dafad --- /dev/null +++ b/benchmarks/hbench/scripts/do-install @@ -0,0 +1,34 @@ +#!/bin/sh + +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 + +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 -R Results $PREFIX/share/hbench +rm $PREFIX/share/hbench/Results/Makefile.orig +cp -R conf $PREFIX/share/hbench + |