pyenv/plugins/python-build/install.sh

24 lines
368 B
Bash
Raw Normal View History

2012-10-23 06:23:48 +00:00
#!/bin/sh
set -e
if [ -z "${PREFIX}" ]; then
PREFIX="/usr/local"
fi
BIN_PATH="${PREFIX}/bin"
SHARE_PATH="${PREFIX}/share/python-build"
mkdir -p "${BIN_PATH}"
mkdir -p "${SHARE_PATH}"
for file in bin/*; do
cp "${file}" "${BIN_PATH}"
done
for file in share/python-build/*; do
cp -Rp "${file}" "${SHARE_PATH}"
2012-10-23 06:23:48 +00:00
done
echo "Installed python-build at ${PREFIX}"