]> git.cworth.org Git - sup/blob - Rakefile
capitalized name for future hoe announcements
[sup] / Rakefile
1 # -*- ruby -*-
2
3 require 'rubygems'
4 require 'hoe'
5 require './lib/sup.rb'
6
7 Hoe.new('sup', Redwood::VERSION) do |p|
8   p.rubyforge_name = 'Sup'
9   p.author = "William Morgan"
10   p.summary = 'A console-based email client with the best features of GMail, mutt, and emacs. Features full text search, labels, tagged operations, multiple buffers, recent contacts, and more.'
11   p.description = p.paragraphs_of('README.txt', 2..4).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-sup@masanjin.net"
15   p.extra_deps = [['ferret', '>= 0.10.13'], ['ncurses', '>= 0.9.1'], ['rmail', '>= 0.17'], 'highline']
16 end
17
18 rule 'ss?.png' => 'ss?-small.png' do |t|
19
20 end
21
22
23 ## is there really no way to make a rule for this?
24 WWW_FILES = %w(www/index.html README.txt doc/Philosophy.txt doc/FAQ.txt)
25
26 SCREENSHOTS = FileList["www/ss?.png"]
27 SCREENSHOTS_SMALL = []
28 SCREENSHOTS.each do |fn|
29   fn =~ /ss(\d+)\.png/
30   sfn = "www/ss#{$1}-small.png"
31   file sfn => [fn] do |t|
32     sh "cat #{fn} | pngtopnm | pnmscale -xysize 320 240 | pnmtopng > #{sfn}"
33   end
34   SCREENSHOTS_SMALL << sfn
35 end
36
37 task :upload_webpage => WWW_FILES do |t|
38   sh "scp -C #{t.prerequisites * ' '} wmorgan@rubyforge.org:/var/www/gforge-projects/sup/"
39 end
40
41 task :upload_webpage_images => (SCREENSHOTS + SCREENSHOTS_SMALL) do |t|
42   sh "scp -C #{t.prerequisites * ' '} wmorgan@rubyforge.org:/var/www/gforge-projects/sup/"
43 end
44
45 # vim: syntax=Ruby