Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
forgot to recreate the option when reviving supernovae
[simgrid.git] / buildtools / pipol / ruby.pl
index 00708a2..d27264c 100644 (file)
@@ -1,9 +1,9 @@
 #!/usr/bin/perl -w
 use strict;
-
+my($ruby_version);
 if( -e "/usr/bin/apt-get")
 {
-       my($ruby_version) = `apt-cache search ruby1.9.1-dev`;
+       $ruby_version = `apt-cache search ruby1.9.1-dev`;
        
        if( $ruby_version=~ /^$/){
        $ruby_version = `apt-cache search ruby1.9-dev`;
@@ -25,12 +25,8 @@ if( -e "/usr/bin/apt-get")
        my($ruby_lib)=`ls /usr/lib/lib$ruby_version.so`;
        chomp $ruby_lib;
        `sudo ln -sf "$ruby_lib" /usr/lib/libruby.so`;
-       
-       $ruby_version=`ruby --version`;
-       print "ruby = $ruby_version";
-       print "libruby = ".`ls /usr/lib/libruby.so`;
-}
-elsif(-e "/usr/bin/yum")
-{
-       `sudo yum -y -q install ruby-devel ruby`
 }
+
+$ruby_version=`ruby --version`;
+print "ruby = $ruby_version";
+print "libruby = ".`ls /usr/lib/libruby.so`;
\ No newline at end of file