mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-13 22:36:06 -04:00
37 lines
1.2 KiB
Bash
Executable File
37 lines
1.2 KiB
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# $NetBSD: do-install,v 1.2 2005/12/29 03:26:28 reed 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
|
|
$BSD_INSTALL_PROGRAM bin/$OSDIR/* $PREFIX/bin/hbench/$OSDIR
|
|
done
|
|
|
|
for files in $SCRIPTS; do
|
|
$BSD_INSTALL_SCRIPT scripts/$files $PREFIX/bin/hbench
|
|
done
|
|
mkdir -p $PREFIX/share/doc/hbench
|
|
for files in $DOCS; do
|
|
$BSD_INSTALL_DATA 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 $BINOWN:$BINGRP ${PREFIX}/bin/run-hbench
|
|
chmod 0755 ${PREFIX}/bin/run-hbench
|
|
cp Results/Makefile $PREFIX/share/hbench/Results
|
|
cp -R conf $PREFIX/share/hbench
|