rbenv-ruby-build/install.sh

21 lines
341 B
Bash
Raw Normal View History

2011-08-08 00:06:24 +02:00
#!/bin/sh
# Usage: PREFIX=/usr/local ./install.sh
#
# Installs ruby-build under $PREFIX.
2011-08-08 00:06:24 +02:00
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" "$SHARE_PATH"
2011-08-08 00:06:24 +02:00
install -p bin/* "$BIN_PATH"
install -p share/ruby-build/* "$SHARE_PATH"