Created
January 23, 2013 18:24
-
-
Save alexkwolfe/4611271 to your computer and use it in GitHub Desktop.
Prepare bundler config to install ruby-debug-ide19 on Mac OS X under rbenv.
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
RUBY_VERSION=`rbenv local` | |
RBENV_SRC=`rbenv root`/sources/`rbenv local`/ruby-`rbenv local` | |
if [ ! -d $RBENV_SRC ]; | |
then | |
echo "Failed. Expected ruby source at $RBENV_SRC." | |
else | |
echo "Setting bundle config for ruby-debug-ide19 on $RUBY_VERSION" | |
bundle config --local build.linecache19 --with-ruby-include=$RBENV_SRC | |
bundle config --local build.ruby-debug-base19 --with-ruby-include=$RBENV_SRC | |
bundle config --local build.ruby-debug-ide19 --with-ruby-include=$RBENV_SRC | |
echo "Done." | |
fi | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment