pyenv/plugins/python-build/install.sh

21 lines
352 B
Bash
Raw Normal View History

2012-10-23 02:23:48 -04:00
#!/bin/sh
# Usage: PREFIX=/usr/local ./install.sh
#
# Installs python-build under $PREFIX.
2012-10-23 02:23:48 -04:00
set -e
cd "$(dirname "$0")"
2012-10-23 02:23:48 -04:00
if [ -z "${PREFIX}" ]; then
PREFIX="/usr/local"
fi
BIN_PATH="${PREFIX}/bin"
SHARE_PATH="${PREFIX}/share/python-build"
mkdir -p "$BIN_PATH" "$SHARE_PATH"
2012-10-23 02:23:48 -04:00
install -p bin/* "$BIN_PATH"
cp -RPp share/python-build/* "$SHARE_PATH"