sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit 3209b521ad6f749825785ce6689b3639e26ca5ed
parent c87373fdc0a15f9df737d1ebeba78288beaae2ab
Author: Per Andersson <avtobiff@gmail.com>
Date:   Tue, 26 Aug 2014 23:37:37 +0200

Functional build of manual pages in Rakefile

Diffstat:
M Rakefile | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/Rakefile b/Rakefile
@@ -42,10 +42,10 @@ task :man do
     Dir.mkdir 'man'
   end
 
-  Dir.glob("doc/wiki/man/*.1").split.each do |m|
+  Dir.glob("doc/wiki/man/*.md").each do |md|
+    m = /^.*\/(?<manpage>[^\/]*)\.md$/.match(md)[:manpage]
     puts "generating manpage for: #{m}.."
-    md = "doc/wiki/#{m}.md"
-    system "pandoc -s -f markdown -t man #{md} -o #{m}"
+    system "pandoc -s -f markdown -t man #{md} -o man/#{m}"
   end
 end