Sha256: 5a2159aedcc8b4ab06fec6d22aa06192d802222960a82fda1b2ea43161f1eacc

Contents?: true

Size: 1.59 KB

Versions: 1

Compression:

Stored size: 1.59 KB

Contents

#!/usr/bin/env ruby
=begin =======================================================================

# MD2MAN-RAKE 1                   2016-03-04                            5.1.1

## NAME

md2man-rake - run rake(1) tasks from md2man(1)

## SYNOPSIS

`md2man-rake` [*OPTION*]... [*TASK*]...

## DESCRIPTION

This program lets you run rake(1) tasks provided by md2man(1) without having
to create a special file named `Rakefile` that contains the following snippet:

    require 'md2man/rakefile'

If no *TASK* is specified, then the `md2man` task is run by default.

## TASKS

`md2man`
  Runs the `md2man:man` and `md2man:web` tasks, in that order.

`md2man:man` or `man`
  Builds UNIX manual pages from `*.markdown`, `*.mkd`, and `*.md` files
  found in or beneath the `man/` subdirectory in your working directory.

`md2man:web` or `web`
  Builds HTML manual pages from `*.markdown`, `*.mkd`, and `*.md` files
  found in or beneath the `man/` subdirectory in your working directory.

## OPTIONS

`-h` [*PATTERN*], `--help` [*PATTERN*]
  Show this help manual and optionally search for *PATTERN* regular expression.

...
  Anything else is passed to rake(1); run `rake --help` for documentation.

## SEE ALSO

rake(1), md2man-roff(1), md2man-html(1), md2man(5)

=end =========================================================================

require 'binman'
BinMan.help

# qualify relative task names by prefixing the namespace
ARGV.map! {|arg| arg.sub(/\A(man|web)\Z/, 'md2man:\&') }

require 'rake'
Rake.application.init File.basename(__FILE__)

require 'md2man/rakefile'
task :default => :md2man

Rake.application.top_level

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
md2man-5.1.1 bin/md2man-rake