Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add installation script

  • Loading branch information...
commit 9488a170b1910c815461ed34ff66bd36156b9e05 1 parent 14810a2
Sam Stephenson sstephenson authored
Showing with 23 additions and 0 deletions.
  1. +23 −0 install.sh
23 install.sh
View
@@ -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}"
Please sign in to comment.
Something went wrong with that request. Please try again.