summaryrefslogtreecommitdiffstats
path: root/install-sh
diff options
context:
space:
mode:
authorMichael Larabel <Michael AT phoronix.com>2008-05-15 19:15:02 -0400
committerMichael Larabel <Michael AT phoronix.com>2008-05-15 19:15:02 -0400
commit4c37f2b33695afe15fa1e66490c2920c999a5ff2 (patch)
treead25540c5982567461f53ad3f3c627be2a605045 /install-sh
parentd9f5713456e4838d02fa9cecf1309e64b9285bb6 (diff)
downloadphoronix-test-suite-upstream-4c37f2b33695afe15fa1e66490c2920c999a5ff2.tar.gz
phoronix-test-suite-upstream-4c37f2b33695afe15fa1e66490c2920c999a5ff2.tar.xz
phoronix-test-suite-upstream-4c37f2b33695afe15fa1e66490c2920c999a5ff2.zip
Add a generic (very base) install script for /usr/ installation (named
install-sh)
Diffstat (limited to 'install-sh')
-rwxr-xr-xinstall-sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/install-sh b/install-sh
new file mode 100755
index 0000000..f8ccbbf
--- /dev/null
+++ b/install-sh
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+# Generic Phoronix Test Suite installer
+
+mkdir -p /usr/bin/
+mkdir -p /usr/share/phoronix-test-suite/
+mkdir -p /usr/share/doc/phoronix-test-suite/
+
+cp CHANGE-LOG /usr/share/doc/phoronix-test-suite/
+cp README /usr/share/doc/phoronix-test-suite/
+cp COPYING /usr/share/doc/phoronix-test-suite/
+
+cp LICENSE /usr/share/phoronix-test-suite/
+cp -r pts/ /usr/share/phoronix-test-suite/
+rm -f /usr/share/phoronix-test-suite/pts/etc/scripts/package-build-*
+cp -r pts-core/ /usr/share/phoronix-test-suite/
+
+cp phoronix-test-suite /usr/bin/phoronix-test-suite
+sed -i 's/PTS_DIR=`pwd`/PTS_DIR=\/usr\/share\/phoronix-test-suite\//g' /usr/bin/phoronix-test-suite
+chmod +x /usr/bin/phoronix-test-suite
+
+echo "Phoronix Test Suite Installed: /usr/bin/phoronix-test-suite"