Sha256: c62d12a26f9e51fbf293f2dfea651ad2edd829015e4319734aafe752f2c22cf7

Contents?: true

Size: 454 Bytes

Versions: 2

Compression:

Stored size: 454 Bytes

Contents

require 'rake'

directory path = 'man/man1'
bins = FileList['bin/*']
mans = bins.pathmap("#{path}/%n.1")

desc 'Build UNIX manual pages for bin/ scripts.'
task :binman => mans

bins.zip(mans).each do |bin, man|
  file man => [bin, path] do
    require 'binman'
    roff = BinMan.dump(bin)
    File.open(man, 'w') {|f| f << roff }
  end
end

# build man pages before building ruby gem using bundler
%w[build install release].each {|t| task t => :binman }

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
binman-3.1.1 lib/binman/rakefile.rb
binman-3.1.0 lib/binman/rakefile.rb