-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathRakefile
35 lines (30 loc) · 1010 Bytes
/
Rakefile
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
require 'rake'
require 'rake/rdoctask'
PROJECTS = %w(anvil-db anvil-gen anvil-gui anvil)
Dir["#{File.dirname(__FILE__)}/*/lib/version.rb"].each do |version_path|
require version_path
end
%w(install package spec).each do |task_name|
desc "Run #{task_name} for all projects"
task task_name do
PROJECTS.each do |project|
system %(cd #{project} && rake #{task_name})
end
end
end
Rake::RDocTask.new do |rdoc|
rdoc.rdoc_dir = 'doc'
rdoc.title = 'Anvil Framework'
rdoc.options << '--line-numbers' << '--inline-source' << '-A cattr_accessor=object'
rdoc.options << '--charset' << 'utf-8'
rdoc.rdoc_files.include("README")
PROJECTS.each do |project|
rdoc.rdoc_files.include("#{project}/CHANGELOG", "#{project}/MIT-LICENSE", "#{project}/TODO")
rdoc.rdoc_files.include("#{project}/lib/**/*.rb")
end
end
desc 'send rdoc to rubyforge'
task :rf_doc do
sh %{sudo chmod -R 755 doc}
sh %{/usr/bin/scp -r -p doc/* [email protected]:/var/www/gforge-projects/anvil}
end