7 Hoe.new('trollop', Trollop::VERSION) do |p|
8 p.rubyforge_name = 'trollop'
9 p.author = "William Morgan"
10 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)."
11 p.description = p.paragraphs_of('README.txt', 3..5).join("\n\n")
12 p.url = p.paragraphs_of('README.txt', 0).first.split(/\n/)[2].gsub(/^\s+/, "")
13 p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
14 p.email = "wmorgan-trollop@masanjin.net"
17 ## is there really no way to make a rule for this?
18 WWW_FILES = %w(www/index.html README.txt FAQ.txt)
20 task :upload_webpage => WWW_FILES do |t|
21 sh "scp -C #{t.prerequisites * ' '} wmorgan@rubyforge.org:/var/www/gforge-projects/trollop/"