Skip to content

Commit

Permalink
Add installation script
Browse files Browse the repository at this point in the history
  • Loading branch information
sstephenson committed Aug 7, 2011
1 parent 14810a2 commit 9488a17
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,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}"

0 comments on commit 9488a17

Please sign in to comment.