blob: 2f291000e316e4eca9aaa9980287da237f762d8f (
plain)
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
|
# -*- ruby -*-
require './lib/hoe.rb'
Hoe.new("hoe", Hoe::VERSION) do |hoe|
hoe.rubyforge_name = "seattlerb"
hoe.developer("Ryan Davis", "ryand-ruby@zenspider.com")
hoe.multiruby_skip << "rubinius"
end
desc "Generate a list of tasks for doco. RDOC=1 for commented output"
task :tasks do
tasks = `rake -T`.scan(/rake (\w+)\s+# (.*)/)
tasks.reject! { |t,d| t =~ /^(clobber|tasks|re(package|docs))/ }
max = tasks.map { |x,y| x.size }.max
tasks.each do |t,d|
if ENV['RDOC'] then
puts "# %-#{max+2}s %s" % [t + "::", d]
else
puts "* %-#{max}s - %s" % [t, d]
end
end
end
# vim: syntax=Ruby
|