4 # URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
5 # Copyright (C) 2008, Phoronix Media
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 3 of the License, or
10 # (at your option) any later version.
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
17 # You should have received a copy of the GNU General Public License
18 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20 # Generic Phoronix Test Suite installer
29 if [ ! -w $INSTALL_PREFIX ]
31 echo "\nERROR: $INSTALL_PREFIX is not writable. Run this installer as root or specify a different directory prefix as the first argument sent to this script.\n"
35 mkdir
-p $INSTALL_PREFIX/bin
/
36 mkdir
-p $INSTALL_PREFIX/share
/man
/man
1/
37 mkdir
-p $INSTALL_PREFIX/share
/phoronix-test-suite
/
38 mkdir
-p $INSTALL_PREFIX/share
/doc
/phoronix-test-suite
/
40 cp CHANGE-LOG
$INSTALL_PREFIX/share
/doc
/phoronix-test-suite
/
41 cp COPYING
$INSTALL_PREFIX/share
/doc
/phoronix-test-suite
/
42 cp AUTHORS
$INSTALL_PREFIX/share
/doc
/phoronix-test-suite
/
45 cp -r * $INSTALL_PREFIX/share
/doc
/phoronix-test-suite
/
47 rm -rf $INSTALL_PREFIX/share
/doc
/phoronix-test-suite
/man-pages
/
49 cp documentation
/man-pages
/*.1 $INSTALL_PREFIX/share
/man
/man
1/
51 cp -r pts
/ $INSTALL_PREFIX/share
/phoronix-test-suite
/
52 rm -f $INSTALL_PREFIX/share
/phoronix-test-suite
/pts
/etc
/scripts
/package-build-
*
53 cp -r pts-core
/ $INSTALL_PREFIX/share
/phoronix-test-suite
/
55 sed 's:PTS_DIR=`pwd`:PTS_DIR='"$INSTALL_PREFIX"'\/share\/phoronix-test-suite:g' phoronix-test-suite
> $INSTALL_PREFIX/bin
/phoronix-test-suite
56 chmod +x
$INSTALL_PREFIX/bin
/phoronix-test-suite
58 echo "\nPhoronix Test Suite Installation Completed\n
59 Executable File: $INSTALL_PREFIX/bin/phoronix-test-suite
60 Documentation: $INSTALL_PREFIX/share/doc/phoronix-test-suite/
61 Phoronix Test Suite Files: $INSTALL_PREFIX/share/phoronix-test-suite/\n"