]> git.cworth.org Git - sup/blobdiff - Rakefile
Sent label handling change
[sup] / Rakefile
index 3815ebacd60e711101259bb5322d49b1057f58df..3b1d9f4fa82953e74a5d8af946591f6468749003 100644 (file)
--- a/Rakefile
+++ b/Rakefile
@@ -1,28 +1,8 @@
-# -*- ruby -*-
-
-require 'rubygems'
-require 'hoe'
-require './lib/sup.rb'
-
-Hoe.new('sup', Redwood::VERSION) do |p|
-  p.rubyforge_name = 'Sup'
-  p.author = "William Morgan"
-  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.'
-  p.description = p.paragraphs_of('README.txt', 2..4).join("\n\n")
-  p.url = p.paragraphs_of('README.txt', 0).first.split(/\n/)[2].gsub(/^\s+/, "")
-  p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
-  p.email = "wmorgan-sup@masanjin.net"
-  p.extra_deps = [['ferret', '>= 0.10.13'], ['ncurses', '>= 0.9.1'], ['rmail', '>= 0.17'], 'highline']
-end
+## is there really no way to make a rule for this?
+WWW_FILES = %w(www/index.html README.txt doc/Philosophy.txt doc/FAQ.txt doc/NewUserGuide.txt www/main.css)
 
 rule 'ss?.png' => 'ss?-small.png' do |t|
-
 end
-
-
-## is there really no way to make a rule for this?
-WWW_FILES = %w(www/index.html README.txt doc/Philosophy.txt doc/FAQ.txt)
-
 SCREENSHOTS = FileList["www/ss?.png"]
 SCREENSHOTS_SMALL = []
 SCREENSHOTS.each do |fn|
@@ -35,11 +15,26 @@ SCREENSHOTS.each do |fn|
 end
 
 task :upload_webpage => WWW_FILES do |t|
-  sh "scp -C #{t.prerequisites * ' '} wmorgan@rubyforge.org:/var/www/gforge-projects/sup/"
+  sh "rsync -essh -cavz #{t.prerequisites * ' '} wmorgan@rubyforge.org:/var/www/gforge-projects/sup/"
 end
 
 task :upload_webpage_images => (SCREENSHOTS + SCREENSHOTS_SMALL) do |t|
-  sh "scp -C #{t.prerequisites * ' '} wmorgan@rubyforge.org:/var/www/gforge-projects/sup/"
+  sh "rsync -essh -cavz #{t.prerequisites * ' '} wmorgan@rubyforge.org:/var/www/gforge-projects/sup/"
+end
+
+# vim: syntax=ruby
+# -*- ruby -*-
+task :upload_report do |t|
+  sh "ditz html ditz"
+  sh "rsync -essh -cavz ditz wmorgan@rubyforge.org:/var/www/gforge-projects/sup/"
+end
+
+task :gem do |t|
+  sh "gem1.8 build sup.gemspec"
 end
 
-# vim: syntax=Ruby
+task :tarball do |t|
+  require "sup-files"
+  require "sup-version"
+  sh "tar cfvz sup-#{SUP_VERSION}.tgz #{SUP_FILES.join(' ')}"
+end