Skip to content

Instantly share code, notes, and snippets.

@thommay
Created August 24, 2011 09:40
Show Gist options
  • Select an option

  • Save thommay/1167687 to your computer and use it in GitHub Desktop.

Select an option

Save thommay/1167687 to your computer and use it in GitHub Desktop.
#!/bin/sh
set -e
if [ -z "$1" ]; then
ruby-build --definitions
exit 1
fi
if [ -z "$2" ]; then
rev=1
else
rev=$2
fi
ver=$1
sudo ruby-build $ver /usr/local/ruby/$ver
sudo /usr/local/ruby/$ver/bin/gem install bundler
fpm -s dir -t deb -n rbenv-$ver -v $rev /usr/local/ruby/$ver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment