Sha256: 0b4badf2d8164e0c25f7c159a784440d3eb367d67a8dc1cfd4a75d7c6daf046d
Contents?: true
Size: 451 Bytes
Versions: 2
Compression:
Stored size: 451 Bytes
Contents
require 'rake' directory path = 'man/man1' bins = FileList['bin/*'] mans = bins.pathmap("#{path}/%n.1") desc 'Build UNIX man 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.0.1 | lib/binman/rakefile.rb |
binman-3.0.0 | lib/binman/rakefile.rb |