public
Description: Ruby wrapper for the Ogre rendering engine and more using rb++
Homepage: http://ogrerb.rubyforge.org
Clone URL: git://github.com/jameskilton/ogrerb.git
ogrerb / Rakefile
100644 43 lines (33 sloc) 1.058 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/env ruby
require 'rake/contrib/sshpublisher'
require 'lib/rake/wrapper'
 
# Setup some global Ogre.rb information
OGRE_RB_ROOT = File.expand_path(File.dirname(__FILE__))
 
# Need to run through the 'wrappers' dir, looking for wrapping projects
# and setup rake tasks as needed
Dir["wrappers/**/*.rake"].each { |f| load f }
 
# Global ogre.rb tasks
namespace :ogrerb do
 
  # Make sure the build and install directory structure we expect exists
  task :bootstrap do
    mkdir_p ogrerb_path("tmp", "downloads")
    mkdir_p ogrerb_path("lib", "usr")
  end
 
end
 
RUBYFORGE_USERNAME = "jameskilton"
PROJECT_WEB_PATH = "/var/www/gforge-projects/ogrerb"
 
namespace :web do
  desc "Build website"
  task :build do |t|
    mkdir_p "publish"
    sh "jekyll --pygment website publish/"
  end
 
  desc "Update the website"
  task :upload => "web:build" do |t|
    Rake::SshDirPublisher.new("#{RUBYFORGE_USERNAME}@rubyforge.org", PROJECT_WEB_PATH, "publish").upload
  end
 
  desc "Clean up generated website files"
  task :clean do
    rm_rf "publish"
  end
end