public
Description: The Curies library implements the CURIE syntax for expressing Compact URIs. See http://www.w3.org/TR/curie/ for more information on the CURIE specification.
Homepage:
Clone URL: git://github.com/pius/curies.git
pius (author)
Fri Jan 09 02:26:36 -0800 2009
commit  608baabaf65a166e2e9402ab0a868198376b514d
tree    44e50785e6941642ab56023244ea6671b19f4b93
parent  a148e2a50add900596d595e3c8a78e07ce5b32f2
curies / tasks / website.rake
100755 18 lines (15 sloc) 0.585 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
desc 'Generate website files'
task :website_generate => :ruby_env do
  (Dir['website/**/*.txt'] - Dir['website/version*.txt']).each do |txt|
    sh %{ #{RUBY_APP} script/txt2html #{txt} > #{txt.gsub(/txt$/,'html')} }
  end
end
 
desc 'Upload website files to rubyforge'
task :website_upload do
  host = "#{rubyforge_username}@rubyforge.org"
  remote_dir = "/var/www/gforge-projects/#{PATH}/"
  local_dir = 'website'
  sh %{rsync -aCv #{local_dir}/ #{host}:#{remote_dir}}
end
 
desc 'Generate and upload website files'
task :website => [:website_generate, :website_upload, :publish_docs]