[TxMt] Re: [SVN] Re: Changes for Ruby 1.9

Alaric Snell-Pym alaric at snell-pym.org.uk
Fri Aug 29 20:42:36 UTC 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On 29 Aug 2008, at 5:48 pm, Charles Turner wrote:

> On Fri, 29 Aug 2008 11:14:45 -0500, James Gray wrote:
>
>> There's no reason to use a shell script.  Ruby supports this  
>> directly:
>>
>>    ./configure … --program-suffix=18
>>
>> That would add a 18 suffix to all programs built:  ruby18, irb18,  
>> etc.
>
> Hi James-
>
> Nice tip, but I was referring to a shell script that would jiggle some
> symbolic links in /usr/local/bin so that I could switch "ruby" between
> 1.9.0, 1.8.6 and MacRuby...

Ah, but once you've built a few rubies with different suffixes  
(ruby18, ruby19, rubymac, etc)
you can then write such a script easily:

SUFFIX=$1

ln -s /usr/local/bin/ruby$SUFFIX /usr/local/bin/ruby
ln -s /usr/local/bin/irb$SUFFIX /usr/local/bin/irb
...

>
> Best, Charles
>


ABS

- --
Alaric Snell-Pym
Work: http://www.snell-systems.co.uk/
Play: http://www.snell-pym.org.uk/alaric/
Blog: http://www.snell-pym.org.uk/?author=4


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)

iEYEARECAAYFAki4Xz4ACgkQRgz/WHNxCGqtFgCfarGODdEjm3yI1Q+RwEuKTxN3
JpMAoI9mn7lPyJP4IHxYlpN3k3N7FBtS
=xWs5
-----END PGP SIGNATURE-----



More information about the textmate mailing list