mirror of
https://github.com/rbenv/ruby-build.git
synced 2025-01-01 14:44:48 +01:00
23 lines
358 B
Bash
Executable file
23 lines
358 B
Bash
Executable file
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
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}"
|