2012-10-23 06:23:48 +00:00
|
|
|
#!/bin/sh
|
2013-11-01 09:30:00 +00:00
|
|
|
# Usage: PREFIX=/usr/local ./install.sh
|
|
|
|
#
|
|
|
|
# Installs python-build under $PREFIX.
|
2012-10-23 06:23:48 +00:00
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2013-11-01 09:30:00 +00:00
|
|
|
cd "$(dirname "$0")"
|
|
|
|
|
2012-10-23 06:23:48 +00:00
|
|
|
if [ -z "${PREFIX}" ]; then
|
|
|
|
PREFIX="/usr/local"
|
|
|
|
fi
|
|
|
|
|
|
|
|
BIN_PATH="${PREFIX}/bin"
|
|
|
|
SHARE_PATH="${PREFIX}/share/python-build"
|
|
|
|
|
2013-11-01 09:30:00 +00:00
|
|
|
mkdir -p "$BIN_PATH" "$SHARE_PATH"
|
2012-10-23 06:23:48 +00:00
|
|
|
|
2013-11-01 09:30:00 +00:00
|
|
|
install -p bin/* "$BIN_PATH"
|
2013-12-20 16:04:19 +00:00
|
|
|
cp -RPp share/python-build/* "$SHARE_PATH"
|