rbenv-ruby-build/install.sh

23 lines
455 B
Bash
Raw Permalink 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 "$(dirname "$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"
2023-11-07 18:13:12 +01:00
MAN_PATH="${PREFIX}/share/man/man1"
2011-08-08 00:06:24 +02:00
2023-11-07 18:13:12 +01:00
mkdir -p "$BIN_PATH" "$SHARE_PATH" "$MAN_PATH"
2011-08-08 00:06:24 +02:00
install -p bin/* "$BIN_PATH"
install -p -m 0644 share/ruby-build/* "$SHARE_PATH"
2023-11-07 18:13:12 +01:00
install -p -m 0644 share/man/man1/*.1 "$MAN_PATH"