rbenv-ruby-build/install.sh

26 lines
372 B
Bash
Raw Normal View History

2011-08-08 00:06:24 +02:00
#!/bin/sh
set -e
cd "${0%/*}"
2011-08-08 00:06:24 +02:00
if [ -z "${PREFIX}" ]; then
PREFIX="/usr/local"
fi
BIN_PATH="${PREFIX}/bin"
SHARE_PATH="${PREFIX}/share/ruby-build"
mkdir -p "${BIN_PATH}"
mkdir -p "${SHARE_PATH}"
for file in bin/*; do
cp "${file}" "${BIN_PATH}"
done
for file in share/ruby-build/*; do
cp "${file}" "${SHARE_PATH}"
done
echo "Installed ruby-build at ${PREFIX}"