sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit 5e3d51125ef5b8f1a6ee1d30667d23fd3d3a1de7
parent 4125e32896659cbdca25769349e59e25cf12770c
Author: Gaute Hope <eg@gaute.vetsj.com>
Date:   Tue, 15 Apr 2014 07:54:10 +0200

rakefile: doc->man, robust :clean

Diffstat:
M Rakefile | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/Rakefile b/Rakefile
@@ -13,7 +13,7 @@ require 'rubygems/package_task'
 # For those who don't have `rubygems-bundler` installed
 load 'sup.gemspec' unless defined? Redwood::Gemspec
 
-task :gem => [:doc]
+task :gem => [:man]
 
 Gem::PackageTask.new(Redwood::Gemspec) do |pkg|
   pkg.need_tar = true
@@ -25,7 +25,7 @@ def test_pandoc
   return system("pandoc -v > /dev/null 2>&1")
 end
 
-task :doc do
+task :man do
   puts "building manpages from wiki.."
   unless test_pandoc
     puts "no pandoc installed, needed for manpage generation."
@@ -50,6 +50,8 @@ task :doc do
 end
 
 task :clean do
-  FileUtils.rm_r 'man'
-  FileUtils.rm_r 'pkg'
+  ['man', 'pkg'].each do |d|
+    puts "cleaning #{d}.."
+    FileUtils.rm_r d if Dir.exist? d
+  end
 end