File: Rakefile

package info (click to toggle)
libgit-ruby 1.0.7-2
  • links: PTS, VCS
  • area: main
  • in suites: lenny, squeeze
  • size: 3,652 kB
  • ctags: 771
  • sloc: ruby: 3,211; sh: 226; makefile: 19
file content (29 lines) | stat: -rw-r--r-- 627 bytes parent folder | download
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
require 'rubygems'
Gem::manage_gems
require 'rake/gempackagetask'

spec = eval(File.read('ruby-git.gemspec'))

Rake::GemPackageTask.new(spec) do |pkg|
    pkg.need_tar = true
end

task :default => "pkg/#{spec.name}-#{spec.version}.gem" do
    puts "generated latest version"
end

desc "Regenerate Documentation"
task :doc do |t|
 system('rdoc lib/ README --main README --inline-source')
end

desc "Upload Docs"
task :upload_docs do |t|
 system('rsync -rv --delete doc/ git.rubyforge.org:/var/www/gforge-projects/git')
end

desc "Run Unit Tests"
task :test do |t|
    require File.dirname(__FILE__) + '/tests/all_tests.rb'
end