summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2006-03-16 00:03:50 +0000
committermurphy <murphy@rubychan.de>2006-03-16 00:03:50 +0000
commit98d88326976c140d7a12f7b3b5f3224a2c44dfa5 (patch)
tree1ad431548f6a3eff3adfaeef285a4fa163c04148
parent23d2a5f2c6b876ba31a52e927973cdd57e2b6ef4 (diff)
downloadcoderay-98d88326976c140d7a12f7b3b5f3224a2c44dfa5.tar.gz
Added export task.
-rw-r--r--Rakefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index b37b869..b0f007c 100644
--- a/Rakefile
+++ b/Rakefile
@@ -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