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
|
# Rakefile for rfii
require 'rake/rdoctask'
require 'rake/packagetask'
task :default => [:test]
desc "Run all unittests"
task :test do
ruby "test/unittest.rb"
end
interesting_files=["README",
"examples/afm2tfm.rb",
"examples/plinfo",
"examples/pldiff",
"examples/afminfo",
"examples/rfont",
"examples/encodingtable",
"examples/rfii",
"lib/rfil/font/*rb",
"lib/rfil/*rb",
"lib/rfil/tex/*rb"
]
Rake::RDocTask.new do |rd|
rd.rdoc_files.include(interesting_files)
rd.title="Ruby Font Installer Library"
rd.options << "-A"
rd.options << "documented_as_accessor=RW,documented_as_reader=R"
rd.options << "--inline-source"
rd.options << "-T"
rd.options << "pghtml"
end
Rake::PackageTask.new("rfil","0.1") do |p|
p.need_tar = true
p.package_files.include(interesting_files,
"setup.rb",
"Rakefile")
end
|