Permalink
Browse files

Convert README.rc to README.txt, delete README.rc, leave README.txt i…

…n the tarball.
  • Loading branch information...
1 parent a884c95 commit db5249d3c6811ab0c1f65f39542c3501cec90f3e rmagick committed Apr 22, 2008
Showing with 5 additions and 5 deletions.
  1. +5 −5 build_tarball.rake
View
@@ -93,19 +93,19 @@ end
-task "README.tmp" do
+task "README.txt" do
Dir.chdir Dist_Directory do
reversion_file "README.rc"
body = File.readlines "README.rc"
body = RedCloth.new(body.join).to_html + "\n"
- File.open("README.tmp", "w") { |f| f.write body }
+ File.open("README.txt", "w") { |f| f.write body }
end
end
-task README => "README.tmp" do
+task README => "README.txt" do
puts "writing #{README}"
Dir.chdir Dist_Directory do
File.open(README, "w") do |html|
@@ -119,7 +119,7 @@ task README => "README.tmp" do
</head>
<body>
END_HTML_HEAD
- html.write File.readlines("README.tmp")
+ html.write File.readlines("README.txt")
html.write <<END_HTML_TAIL
</body>
</html>
@@ -180,7 +180,7 @@ end
-task :collateral => ["README.html", :gemspec, :extconf, :doc]
+task :collateral => [README, :gemspec, :extconf, :doc]
GEM = Dist_Directory.downcase + ".gem"

0 comments on commit db5249d

Please sign in to comment.