Skip to content

Instantly share code, notes, and snippets.

@mrbrutti
Created February 12, 2009 15:13
Show Gist options
  • Save mrbrutti/62666 to your computer and use it in GitHub Desktop.
Save mrbrutti/62666 to your computer and use it in GitHub Desktop.
#!/bin/sh
if [ -z "$1" ]; then
echo "usage: $0 <install|update> "
echo "Author: Matias Pablo Brutti"
echo "Bye :)"
exit
fi
echo "This might not compile because it is download straight from"
echo "the svn repository. If it does not work either wait and try"
echo "again later or do your work and check why is not working."
echo "Happy hacking!"
if [ "$1" == install ]; then
echo "Downloading ruby from the svn repo"
svn co http://svn.ruby-lang.org/repos/ruby/trunk ruby
cd ruby
fi
if [ "$1" == update ]; then
echo "Cleaning last install and updating repo"
cd ruby
make clean
svn update
fi
echo "Configuring && installing ..."
autoconf
./configure --program-suffix=-1.9 --prefix=/opt/local
make
sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment