Created
February 12, 2009 15:13
-
-
Save mrbrutti/62666 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/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