Skip to content

Commit

Permalink
Convert README.rc to README.txt, delete README.rc, leave README.txt i…
Browse files Browse the repository at this point in the history
…n the tarball.
  • Loading branch information
rmagick committed Apr 22, 2008
1 parent a884c95 commit db5249d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions build_tarball.rake
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand All @@ -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>
Expand Down Expand Up @@ -180,7 +180,7 @@ end



task :collateral => ["README.html", :gemspec, :extconf, :doc]
task :collateral => [README, :gemspec, :extconf, :doc]

GEM = Dist_Directory.downcase + ".gem"

Expand Down

0 comments on commit db5249d

Please sign in to comment.