Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

executable file 23 lines (16 sloc) 0.358 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
#!/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}"
Something went wrong with that request. Please try again.