Sha256: 6891d4f8f500041af464f2a8bffa76dfe6708f62d37b78fce8ce36fbba2e5153

Contents?: true

Size: 356 Bytes

Versions: 3

Compression:

Stored size: 356 Bytes

Contents

require 'rake'

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

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


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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
binman-0.1.2 lib/binman/rake_tasks.rb
binman-0.1.1 lib/binman/rake_tasks.rb
binman-0.0.1 lib/binman/rake_tasks.rb