Sha256: ce384eac85ef082e2071aed23959675763777f71a97145e000ece6e17b029adf
Contents?: true
Size: 1.46 KB
Versions: 1
Compression:
Stored size: 1.46 KB
Contents
# Copyright 2007 Suraj N. Kurapati # See the file named LICENSE for details. require 'rake/clean' require 'rake/rdoctask' require 'rake/gempackagetask' # documentation desc "Build the documentation." task :doc # the user guide file 'doc/guide.html' => 'doc/guide.erb' do |t| sh "gerbil html #{t.prerequisites} > #{t.name}" end task :doc => 'doc/guide.html' CLOBBER.include 'doc/guide.html' # API reference desc "Build API reference." task :ref => 'doc/api' Rake::RDocTask.new 'doc/api' do |t| t.rdoc_dir = t.name t.rdoc_files.exclude('_darcs', 'pkg').include('**/*.rb') end # packaging require 'lib/rumai/nfo' # project info spec = Gem::Specification.new do |s| s.name = Rumai::NFO[:name].downcase s.version = Rumai::NFO[:version] s.summary = 'Ruby interface to wmii.' s.description = s.summary s.homepage = Rumai::NFO[:website] s.files = FileList['**/*'].exclude('_darcs') s.executables = s.name s.rubyforge_project = s.name s.has_rdoc = true end Rake::GemPackageTask.new(spec) do |pkg| pkg.need_tar = true end # releasing desc 'Build release packages.' task :dist => [:clobber, :doc, :ref] do system 'rake package' end # utility desc 'Upload to project website.' task :upload => [:doc, :ref] do sh "rsync -av doc/ ~/www/lib/#{spec.name}" sh "rsync -av doc/api/ ~/www/lib/#{spec.name}/api/ --delete" end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rumai-1.0.0 | Rakefile |