Skip to content

Commit

Permalink
upload CHANGES on release
Browse files Browse the repository at this point in the history
  • Loading branch information
quix committed Sep 13, 2008
1 parent 79c986c commit 9d0c1b3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Rakefile.drake
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,14 @@ task :drake_publish => :rdoc do
}
end

def rubyforge(command, file)
def rubyforge(command, file, *args)
sh("rubyforge",
command,
SPEC.rubyforge_project,
SPEC.rubyforge_project,
SPEC.version.to_s,
file)
file,
*args)
end

task :drake_finish_release do
Expand All @@ -72,7 +73,8 @@ task :drake_finish_release do
gem = "#{SPEC.name}-#{SPEC.version}.gem"
md5 = "#{gem}.md5"
sh("md5sum #{gem} > #{md5}")
rubyforge("add_release", gem)
rubyforge(
*%W(add_release #{gem} --release_changes CHANGES.drake --preformatted))
rubyforge("add_file", md5)
}

Expand Down

0 comments on commit 9d0c1b3

Please sign in to comment.