Skip to content

Commit

Permalink
updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
EffinMaggie committed Apr 23, 2014
1 parent 14a2eaa commit ad5c485
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,40 @@ blow up the XSLT processor.

Apply the stylesheet like you would any other stylesheet, e.g. with xsltproc(1):

> $ xsltproc xhtml2man.xslt input.xhtml > output.7
```sh
$ xsltproc xhtml2man.xslt input.xhtml > output.7
```

Alternatively, use the sh/html2man sample script, which will filter stuff using
xsltproc after applying cleanups using tidy(1) and possibly even downloading the
source (X)HTML using curl(1). For more information, use...

> $ man html2man
```sh
$ man html2man
```

... after installing the package. Example usages would be:

> $ cat input.xhtml | html2man > output.7
> $ html2man -i input.xhtml > output.7
> $ html2man -r -i http://en.wikipedia.org/wiki/man_page > output.7
```sh
$ cat input.xhtml | html2man > output.7
$ html2man -i input.xhtml > output.7
$ html2man -r -i http://en.wikipedia.org/wiki/man_page > output.7
```

# Installation

Use the supplied makefile, like this:

> # make install
```
# make install
```

The paths where the makefile will put things are customisable. See the makefile
for more details, but in particular...

> # make install DESTDIR=/some/custom/base/path
```
# make install DESTDIR=/some/custom/base/path
```

# Contact

Expand Down

0 comments on commit ad5c485

Please # to comment.