Sha256: 93d890bafad239aa424b4ea03b356e8dc149dab381934265f859911eb34e68d0
Contents?: true
Size: 1.22 KB
Versions: 1
Compression:
Stored size: 1.22 KB
Contents
require 'rake' # build man pages before building ruby gem using bundler %w[build install release].each {|t| task t => :binman } #----------------------------------------------------------------------------- desc 'Build manual pages for bin/ scripts.' task :binman => ['binman:man', 'binman:web'] #----------------------------------------------------------------------------- directory dir = 'man/man1' bins = FileList['bin/*'] mkds = bins.pathmap("#{dir}/%n.1.markdown") bins.zip(mkds).each do |src, dst| file dst => [dir, src] do require 'binman' output = BinMan.load(src) File.open(dst, 'w') {|f| f << output } end end #----------------------------------------------------------------------------- desc 'Build UNIX manual pages for bin/ scripts.' task 'binman:man' => mkds do #----------------------------------------------------------------------------- require 'md2man/rakefile' Rake::Task['md2man:man'].invoke end #----------------------------------------------------------------------------- desc 'Build HTML manual pages for bin/ scripts.' task 'binman:web' => mkds do #----------------------------------------------------------------------------- require 'md2man/rakefile' Rake::Task['md2man:web'].invoke end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
binman-3.2.0 | lib/binman/rakefile.rb |