Refactored Diff::Display classes
[gitorious:yousource.git] / vendor / diff-display / tasks / website.rake
1 desc 'Generate website files'
2 task :website_generate => :ruby_env do
3   (Dir['website/**/*.txt'] - Dir['website/version*.txt']).each do |txt|
4     sh %{ #{RUBY_APP} script/txt2html #{txt} > #{txt.gsub(/txt$/,'html')} }
5   end
6 end
7
8 desc 'Upload website files to rubyforge'
9 task :website_upload do
10   host = "#{rubyforge_username}@rubyforge.org"
11   remote_dir = "/var/www/gforge-projects/#{PATH}/"
12   local_dir = 'website'
13   sh %{rsync -aCv #{local_dir}/ #{host}:#{remote_dir}}
14 end
15
16 desc 'Generate and upload website files'
17 task :website => [:website_generate, :website_upload, :publish_docs]