summaryrefslogtreecommitdiff
path: root/support/rfil/Rakefile
diff options
context:
space:
mode:
Diffstat (limited to 'support/rfil/Rakefile')
-rw-r--r--support/rfil/Rakefile41
1 files changed, 41 insertions, 0 deletions
diff --git a/support/rfil/Rakefile b/support/rfil/Rakefile
new file mode 100644
index 0000000000..92c121a889
--- /dev/null
+++ b/support/rfil/Rakefile
@@ -0,0 +1,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