Sha256: ebcdbaf01f794778f881be83e8983d22689215efcd1bd4ce60b0b819e2592a0a
Contents?: true
Size: 1.3 KB
Versions: 5
Compression:
Stored size: 1.3 KB
Contents
require 'binman' require 'rake' # build man pages before building ruby gem using bundler if defined? Bundler::GemHelper %w[build install release].each {|t| task t => :binman } end #----------------------------------------------------------------------------- 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 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 #----------------------------------------------------------------------------- BinMan.require_md2man load 'md2man/rakefile.rb' Rake::Task['md2man:man'].invoke end #----------------------------------------------------------------------------- desc 'Build HTML manual pages for bin/ scripts.' task 'binman:web' => mkds do #----------------------------------------------------------------------------- BinMan.require_md2man load 'md2man/rakefile.rb' Rake::Task['md2man:web'].invoke end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
binman-3.4.1 | lib/binman/rakefile.rb |
binman-3.4.0 | lib/binman/rakefile.rb |
binman-3.3.3 | lib/binman/rakefile.rb |
binman-3.3.2 | lib/binman/rakefile.rb |
binman-3.3.1 | lib/binman/rakefile.rb |