Permalink
Browse files

Factored out the homepage tweaks and release tagging rake code into t…

…ools/tasks/*.rake

git-svn-id: http://atomicobjectrb.rubyforge.org/svn/trunk/publisher@28 7bd720c3-caf9-44c9-a48d-612f81e63739
  • Loading branch information...
1 parent 6e98b24 commit 1a20e808f8b0ba09b67d6a19bff1f94a2110a85e dcrosby42 committed Nov 22, 2007
Showing with 5 additions and 39 deletions.
  1. +5 −39 Rakefile
View
44 Rakefile
@@ -26,44 +26,10 @@ Hoe.new('publisher', Publisher::VERSION) do |p|
p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
end
-#
-# Documentation
-#
-# Alter publish_docs to rearrange the doc directory to contain the project
-# homepage, and move doc one level down, into rdoc
-task :publish_docs => :setup_homepage
-# nodoc
-task :setup_homepage => [ :clean, :redocs ] do
- mv "doc", "rdoc"
- cp_r "homepage", "doc"
- Find.find("doc") do |f|
- if File.basename(f) == ".svn"
- puts "Killing #{f}"
- rm_rf f
- Find.prune
- elsif f =~ /(\.erb$|\.graffle$)/
- puts "Killing #{f}"
- rm f
- end
- end
- mv "rdoc", "doc"
-end
+load "../tools/tasks/homepage.rake"
-#
-# Release tagging
-#
-desc "Tag the current release in svn AND update the 'current' release tag"
-task :tag_release do
- config = YAML.load(File.read(File.expand_path("~/.rubyforge/user-config.yml")))
- host = "#{config["username"]}@rubyforge.org"
- package = "publisher"
- tags = "svn+ssh://#{host}/var/svn/atomicobjectrb/tags"
- version = Publisher::VERSION
- sh "svn cp . #{tags}/#{package}-#{version} -m 'Releasing #{package}-#{version}'"
- begin
- sh "svn del #{tags}/#{package} -m 'Preparing to update current release tag for #{package}'"
- rescue Exception
- puts "(didn't delete previous current tag)"
- end
- sh "svn cp . #{tags}/#{package} -m 'Updating current release tag for #{package} to version #{version}'"
+load "../tools/tasks/release_tagging.rake"
+ReleaseTagging.new do |t|
+ t.package = "publisher"
+ t.version = Publisher::VERSION
end

0 comments on commit 1a20e80

Please sign in to comment.