rbenv-ruby-build/install.sh
Sebastian Boehm 861f7d73de Fix install file mode for files in share/
install(1) defaults to file mode 0755 which is inappropriate for Ruby
definitions
2014-01-23 14:01:23 +01:00

20 lines
357 B
Bash
Executable file

#!/bin/sh
# Usage: PREFIX=/usr/local ./install.sh
#
# Installs ruby-build under $PREFIX.
set -e
cd "$(dirname "$0")"
if [ -z "${PREFIX}" ]; then
PREFIX="/usr/local"
fi
BIN_PATH="${PREFIX}/bin"
SHARE_PATH="${PREFIX}/share/ruby-build"
mkdir -p "$BIN_PATH" "$SHARE_PATH"
install -p bin/* "$BIN_PATH"
install -p -m 0644 share/ruby-build/* "$SHARE_PATH"