Created
December 7, 2009 12:34
-
-
Save okkez/250796 to your computer and use it in GitHub Desktop.
build and update Ruby
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
#!/bin/sh | |
for rev in 5 6 7 | |
do | |
cd $HOME/src/all-ruby/ruby_1_8_${rev} | |
autoconf | |
./configure --prefix=$HOME/all-ruby/ruby18${rev} \ | |
--disable-install-doc \ | |
--enable-pthread \ | |
#--with-X11-include=/usr/include/X11/ \ | |
--with-tcl-include=/usr/include/tcl8.5/ \ | |
--with-tcllib=tcl8.5 \ | |
--with-tklib=tk8.5 | |
make -j4 && make install | |
ln -s $HOME/all-ruby/ruby18${rev}/bin/ruby $HOME/bin/ruby18${rev} | |
done |
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
#!/bin/sh | |
REPO_BASE=http://svn.ruby-lang.org/repos/ruby | |
TAGS=${REPO_BASE}/tags | |
BRANCHES=${REPO_BASE}/branches | |
#for rev in 0 1 2 3 4 | |
#do | |
#wget http://core.ring.gr.jp/archives/lang/ruby/1.8/ruby-1.8.${rev}.tar.gz | |
#rm -rf ruby-1.8.${rev} | |
#tar xfz ruby-1.8.${rev}.tar.gz | |
#done | |
for rev in 0 1 2 3 4 | |
do | |
cd $HOME/src/all-ruby/ruby-1.8.${rev} | |
./configure --prefix=$HOME/all-ruby/ruby-1.8.${rev} \ | |
--disable-install-doc \ | |
--enable-pthread \ | |
#--with-X11-include=/usr/include/X11/ \ | |
--with-tcl-include=/usr/include/tcl8.5/ \ | |
--with-tcllib=tcl8.5 \ | |
--with-tklib=tk8.5 | |
make -j4 && make install | |
ln -s $HOME/all-ruby/ruby-1.8.${rev}/bin/ruby $HOME/bin/ruby-1.8.${rev} | |
done | |
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
#!/bin/sh | |
RUBY_SRC=$HOME/src/all-ruby | |
rm -rf $HOME/all-ruby/ruby19x | |
cd $RUBY_SRC/ruby | |
svn up | |
autoconf | |
make clean | |
./configure --prefix=$HOME/all-ruby/ruby19x --disable-install-doc \ | |
--with-X11-include=/usr/include/X11/ \ | |
--with-tcl-include=/usr/include/tcl8.5/ \ | |
--with-tcllib=tcl8.5 \ | |
--with-tklib=tk8.5 | |
make && make install | |
make golf | |
#exit | |
rm -rf $HOME/all-ruby/ruby18x | |
cd $RUBY_SRC/ruby_1_8 | |
svn up | |
autoconf | |
make clean | |
./configure --prefix=$HOME/all-ruby/ruby18x --disable-install-doc \ | |
--enable-pthread \ | |
--with-X11-include=/usr/include/X11/ \ | |
--with-tcl-include=/usr/include/tcl8.5/ \ | |
--with-tcllib=tcl8.5 \ | |
--with-tklib=tk8.5 | |
make && make install | |
rm -rf $HOME/all-ruby/ruby187 | |
cd $RUBY_SRC/ruby_1_8_7 | |
svn up | |
autoconf | |
make clean | |
./configure --prefix=$HOME/all-ruby/ruby187 --disable-install-doc \ | |
--enable-pthread \ | |
--with-X11-include=/usr/include/X11/ \ | |
--with-tcl-include=/usr/include/tcl8.5/ \ | |
--with-tcllib=tcl8.5 \ | |
--with-tklib=tk8.5 | |
make && make install | |
rm -rf $HOME/all-ruby/ruby191 | |
cd $RUBY_SRC/ruby_1_9_1 | |
svn up | |
autoconf | |
make clean | |
./configure --prefix=$HOME/all-ruby/ruby191 --disable-install-doc \ | |
--with-X11-include=/usr/include/X11/ \ | |
--with-tcl-include=/usr/include/tcl8.5/ \ | |
--with-tcllib=tcl8.5 \ | |
--with-tklib=tk8.5 | |
make && make install | |
make golf | |
exit | |
ris_dir=$HOME/ruby/rubydoc-git/refm/api/ris | |
rdoc1.8 --ri --op $ris_dir/1.8.x $RUBY_SRC/ruby-1.8 | |
rdoc1.8 --ri --op $ris_dir/1.9.0 $RUBY_SRC/ruby | |
rdoc1.8 --ri --op $ris_dir/1.8.7 $RUBY_SRC/ruby-1.8.7 | |
rdoc1.8 --ri --op $ris_dir/1.9.1 $RUBY_SRC/ruby-1.9.1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment