tasks/svn.rake in gecoder-0.7.1 vs tasks/svn.rake in gecoder-0.8.0
- old
+ new
@@ -1,11 +1,14 @@
require 'lib/gecoder/version'
desc "Tag the release in svn"
task :tag do
- from = `svn info`.match(/Repository Root: (.*)/n)[1] + '/trunk'
- to = from.gsub(/trunk/, "tags/gecoder-#{GecodeR::VERSION}")
+ base_url = `svn info`.match(/Repository Root: (.*)/n)[1]
+ base_url.gsub!('rubyforge', "#{ENV['RUBYFORGE_USER']}@rubyforge")
+ 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} -m \"Tag release Gecode/R #{GecodeR::VERSION}\""
+ tag_cmd = "svn cp #{from} #{to} #{options}"
`#{tag_cmd}` ; raise "ERROR: #{tag_cmd}" unless $? == 0
end