mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2026-09-10 07:16:18 -04:00
Import changes from install script of ruby-build v20131225.1
This commit is contained in:
parent
cebd326821
commit
95cc31ba6b
13
install.sh
13
install.sh
|
|
@ -1,17 +1,18 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# Usage: PREFIX=/usr/local ./install.sh
|
||||||
|
#
|
||||||
|
# Installs pyenv-virtualenv under $PREFIX.
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
cd "$(dirname "$0")"
|
||||||
|
|
||||||
if [ -z "${PREFIX}" ]; then
|
if [ -z "${PREFIX}" ]; then
|
||||||
PREFIX="/usr/local"
|
PREFIX="/usr/local"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
BIN_PATH="${PREFIX}/bin"
|
BIN_PATH="${PREFIX}/bin"
|
||||||
|
|
||||||
mkdir -p "${BIN_PATH}"
|
mkdir -p "$BIN_PATH"
|
||||||
|
|
||||||
for file in bin/*; do
|
install -p bin/* "$BIN_PATH"
|
||||||
cp "${file}" "${BIN_PATH}"
|
|
||||||
done
|
|
||||||
|
|
||||||
echo "Installed pyenv-virtualenv at ${PREFIX}"
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue