Sha256: e715169d1b0b9d4b6916a1ebdf40cf2ffa0c87156d1f69344e72ce66419ed21a

Contents?: true

Size: 1.12 KB

Versions: 1

Compression:

Stored size: 1.12 KB

Contents

#!/usr/bin/env ruby -w

require 'multiruby'

ARGV << "help" if ARGV.empty?

ARGV.each do |spec|
  case spec
  when "-h", "help" then
    Multiruby.help
  when "list" then
    Multiruby.list
  when /rm:(.*)/ then
    Multiruby.rm $1
  when "clean" then
    Multiruby.clean
  when "update" then
    Multiruby.update
  when "update:rubygems" then
    Multiruby.update_rubygems
  when "mri:svn:current" then
    ARGV << "mri:svn:releases" << "mri:svn:branches"
  when "mri:svn:releases" then
    Multiruby::TAGS.each do |v|
      ARGV << "mri:svn:#{v}"
    end
  when "mri:svn:branches" then
    Multiruby::BRANCHES.each do |v|
      ARGV << "mri:svn:#{v}"
    end
  when /mri:svn:branch:(.*)/ then
    ver = $1
    ver = "branches/ruby_#{ver}" unless ver == "trunk"

    Multiruby.svn_co "#{Multiruby::MRI_SVN}/#{ver}", "mri_#{ver}"
  when /mri:svn:tag:(.*)/ then
    ver = $1
    latest = Multiruby.tags.grep(/#{ver}/).last

    Multiruby.svn_co "#{Multiruby::MRI_SVN}/tags/#{latest}", "mri_rel_#{ver}"
  when /mri:tar:(.*)/ then
    v = $1
    Multiruby.fetch_tar v
  else
    warn "unknown spec #{spec}"
  end
end

Multiruby.build_and_install

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ZenTest-3.10.0 bin/multiruby_setup