Sha256: b0d30dcdcc86d8ba2f221c825bc02bb8fae9f002d18c0761470bd314fe12e0e0

Contents?: true

Size: 541 Bytes

Versions: 11

Compression:

Stored size: 541 Bytes

Contents

require 'lib/gecoder/version'

desc "Tag the release in svn"
task :tag do
  base_url = `svn info`.match(/Repository Root: (.*)/n)[1]
  unless base_url.include? ENV['RUBYFORGE_USER']
    base_url.gsub!('rubyforge', "#{ENV['RUBYFORGE_USER']}@rubyforge")
  end
  from = base_url + '/trunk'
  to = base_url + "/tags/gecoder-#{GecodeR::VERSION}"
  options = "-m \"Tag release Gecode/R #{GecodeR::VERSION}\""

  puts "Creating tag in SVN"
  tag_cmd = "svn cp #{from} #{to} #{options}"
  `#{tag_cmd}` ; raise "ERROR: #{tag_cmd}" unless $? == 0
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
gecoder-with-gecode-1.1.0 tasks/svn.rake
gecoder-1.1.0 tasks/svn.rake
gecoder-0.9.1 tasks/svn.rake
gecoder-0.9.0 tasks/svn.rake
gecoder-1.0.0 tasks/svn.rake
gecoder-with-gecode-0.9.0-x86-mswin32-60 tasks/svn.rake
gecoder-with-gecode-0.9.0 tasks/svn.rake
gecoder-with-gecode-0.9.1-x86-mswin32-60 tasks/svn.rake
gecoder-with-gecode-0.9.1 tasks/svn.rake
gecoder-with-gecode-1.0.0-x86-mswin32-60 tasks/svn.rake
gecoder-with-gecode-1.0.0 tasks/svn.rake