lib/md2man/rakefile.rb in md2man-1.4.0 vs lib/md2man/rakefile.rb in md2man-1.4.1

- old
+ new

@@ -1,15 +1,17 @@ require 'rake' # build man pages before building ruby gem using bundler -%w[build install release].each {|t| task t => :md2man } +if defined? Bundler::GemHelper + %w[build install release].each {|t| task t => :md2man } +end #----------------------------------------------------------------------------- desc 'Build manual pages from Markdown files in man/.' task :md2man => ['md2man:man', 'md2man:web'] #----------------------------------------------------------------------------- -mkds = FileList['man/man*/*.{markdown,mkd,md}'] +mkds = FileList['man/**/*.{markdown,mkd,md}'] mans = mkds.pathmap('%X') webs = mans.pathmap('%p.html') render_file_task = lambda do |src, dst, renderer| directory dir = dst.pathmap('%d')