Browse files

Add installation script

  • Loading branch information...
1 parent 14810a2 commit 9488a170b1910c815461ed34ff66bd36156b9e05 @sstephenson sstephenson committed Aug 7, 2011
Showing with 23 additions and 0 deletions.
  1. +23 −0 install.sh
View
23 install.sh
@@ -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.