Skip to content

Commit

Permalink
Added export task.
Browse files Browse the repository at this point in the history
  • Loading branch information
korny committed Mar 16, 2006
1 parent 23d2a5f commit 98d8832
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -255,3 +255,16 @@ task :up_doc => :rdoc do
end
gn 'Documentation uploaded.'
end

RUBYFORGE_TRUNK_DIR = 'L:/rubyforge/trunk/coderay/trunk'
desc 'Export trunk to Rubyforge working copy vis SVN'
task :export do
system 'svn st'
puts 'Exporting changelog.'
system 'svn log > ../changelog.txt'
system "svn export #{`svn info`[/URL: (.*)/,1]}/ #{RUBYFORGE_TRUNK_DIR} --force"
cp '../changelog.txt', "#{RUBYFORGE_TRUNK_DIR}/.."
Dir.chdir RUBYFORGE_TRUNK_DIR do
system "svn st"
end
end

0 comments on commit 98d8832

Please sign in to comment.