8 def extra_deps; @extra_deps.reject { |x| Array(x).first == "hoe" } end
9 end # thanks to "Mike H"
11 Hoe.new('trollop', Trollop::VERSION) do |p|
12 p.rubyforge_name = 'trollop'
13 p.author = "William Morgan"
14 p.summary = "Trollop is YAFCLAP --- yet another fine commandline argument processing library for Ruby. Trollop is designed to provide the maximal amount of GNU-style argument processing in the minimum number of lines of code (for you, the programmer)."
16 p.description = p.paragraphs_of('README.txt', 4..5, 9..18).join("\n\n").gsub(/== SYNOPSIS/, "Synopsis")
17 p.url = "http://trollop.rubyforge.org"
18 p.changes = p.paragraphs_of('History.txt', 0..0).join("\n\n")
19 p.email = "wmorgan-trollop@masanjin.net"
22 ## is there really no way to make a rule for this?
23 WWW_FILES = %w(index.html README.txt FAQ.txt)
25 task :upload_webpage => WWW_FILES do |t|
26 sh "scp -C #{t.prerequisites * ' '} wmorgan@rubyforge.org:/var/www/gforge-projects/trollop/"