Created
November 25, 2013 09:54
-
-
Save mediafinger/7639003 to your computer and use it in GitHub Desktop.
ruby-build script to install ruby 1.9.3-p484 with @skaes railsexpress patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
build_package_patch_ruby_railsexpress() { | |
fetch_git rvm-patchsets git://github.com/skaes/rvm-patchsets.git master | |
for p in rvm-patchsets/patches/ruby/1.9.3/p484/railsexpress/* ; do | |
patch -p1 < $p | |
done | |
} | |
install_package "yaml-0.1.4" "http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz#36c852831d02cf90508c29852361d01b" | |
install_package "ruby-1.9.3-p484" "http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p484.tar.gz#8ac0dee72fe12d75c8b2d0ef5d0c2968" patch_ruby_railsexpress autoconf standard |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
VERSION="1.9.3-p484" | |
if command -v brew > /dev/null | |
then | |
if brew --prefix openssl > /dev/null | |
then | |
CONFIGURE_OPTS="$CONFIGURE_OPTS --with-openssl-dir=`brew --prefix openssl`" | |
fi | |
if brew --prefix readline > /dev/null | |
then | |
CONFIGURE_OPTS="$CONFIGURE_OPTS --with-readline-dir=`brew --prefix readline`" | |
fi | |
fi | |
ruby-build ./$VERSION-railsexpress $HOME/.rbfu/rubies/$VERSION-railsexpress --disable-install-rdoc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just run
install-railsexpress
to install the patched ruby version into rbfu's default directory for rubies.