Sha256: 94e7770ce0616b6cebd059d9d7bb659a495f8333be2c43f02ed15a65dad2b37c

Contents?: true

Size: 1.98 KB

Versions: 41

Compression:

Stored size: 1.98 KB

Contents

#!/usr/bin/env ruby -w

require 'multiruby'

ENV.delete 'RUBYOPT'

ARGV << "help" if ARGV.empty?

Dir.chdir Multiruby.root_dir
Multiruby.setup_dirs(false)

ARGV.each do |spec|
  case spec
  when "-h", "--help", "help" then
    Multiruby.help
    exit 0
  when "the_usual" then # TODO: update #help
    ARGV.push(*Multiruby::TAGS.map { |v| "mri:tar:#{v.gsub(/_/, '.')}" })
    ARGV << "build" << "update:rubygems"
    system "multigem install --no-ri --no-rdoc rake minitest ZenTest gemcutter rubyforge hoe"
  when "build" then
    Multiruby.build_and_install
  when "clean" then
    Multiruby.clean
  when "list" then
    Multiruby.list
  when /rm:(.*)/ then
    Multiruby.rm $1
  when "rubygems:merge" then
    Multiruby.merge_rubygems
  when "rubygems:update", "update:rubygems" then
    Multiruby.update_rubygems
    ARGV << "build"
  when "update" then
    Multiruby.update
  when "tags" then
    p Multiruby.tags
  when "mri:svn:current" then
    ARGV << "mri:svn:releases" << "mri:svn:branches" << "build"
  when "mri:svn:releases" then
    Multiruby::TAGS.each do |v|
      latest = Multiruby.mri_latest_tag v
      abort "Can't find tag #{v}" unless latest
      ARGV << "mri:svn:tag:#{latest}:mri_rel_#{v}"
    end
    ARGV << "build"
  when /mri:svn:branch:(.*)/ then
    ver = "branches/ruby_#{$1}" unless ver == "trunk"
    Multiruby.svn_co "#{Multiruby::MRI_SVN}/#{$1}", "mri_#{$1}"
    ARGV << "build"
  when "mri:svn:branches" then
    Multiruby::BRANCHES.each do |v|
      ARGV << "mri:svn:branch:#{v}"
    end
    ARGV << "build"
  when /mri:svn:tag:(.*):(.*)/ then
    Multiruby.svn_co "#{Multiruby::MRI_SVN}/tags/#{$1}", $2
    ARGV << "build"
  when /mri:svn:tag:(.*)/ then
    ARGV << "mri:svn:tag:#{$1}:#{$1}" << "build"
  when /mri:list:(.*)/ then
    v   = $1
    ver = v[/\d+\.\d+/]
    url = "#{Multiruby::RUBY_URL}/#{ver}/"

    puts Multiruby.matching_versions(url, v).join("\n")
  when /mri:tar:(.*)/ then
    Multiruby.fetch_tar $1
    ARGV << "build"
  else
    warn "unknown spec #{spec}"
  end
end

Version data entries

41 entries across 41 versions & 10 rubygems

Version Path
ZenTest-4.8.1 bin/multiruby_setup
ZenTest-4.8.0 bin/multiruby_setup
ZenTest-4.7.0 bin/multiruby_setup
radiant-1.0.0 ruby-debug/ruby/1.8/gems/ZenTest-4.6.0/bin/multiruby_setup
SlimZenTest-4.6.2 bin/multiruby_setup
ZenTest-4.6.2 bin/multiruby_setup
SlimTest-4.6.1.1 bin/slim-multiruby_setup
ZenTest-4.6.1 bin/multiruby_setup
ZenTest-4.6.0 bin/multiruby_setup
ZenTest-4.5.0 bin/multiruby_setup
vim-jar-0.1.2.0001 bundler/ruby/1.8/gems/ZenTest-4.4.0/bin/multiruby_setup
vim-jar-0.1.2 bundler/ruby/1.8/gems/ZenTest-4.4.0/bin/multiruby_setup
vim-jar-0.1.1 bundler/ruby/1.8/gems/ZenTest-4.4.0/bin/multiruby_setup
vim-jar-0.1.0 bundler/ruby/1.8/gems/ZenTest-4.4.0/bin/multiruby_setup
ZenTest-4.4.2 bin/multiruby_setup
ZenTest-4.4.1 bin/multiruby_setup
vim-jar-0.0.3 bundler/ruby/1.8/gems/ZenTest-4.4.0/bin/multiruby_setup
vim-jar-0.0.2 bundler/ruby/1.8/gems/ZenTest-4.4.0/bin/multiruby_setup
vim-jar-0.0.1 bundler/ruby/1.8/gems/ZenTest-4.4.0/bin/multiruby_setup
zentest-without-autotest-4.4.0 bin/multiruby_setup