-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #123 from joshix/master
Build mktags and >buildtags to make discount build on Plan 9 again.
- Loading branch information
Showing
5 changed files
with
41 additions
and
45 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# *Discount* Markdown compiler on Plan 9 | ||
|
||
## Build | ||
% CONFIG='--with-dl=both' mk config | ||
% mk test | ||
% mk install | ||
% markdown -V | ||
markdown: discount X.Y.Z DL=BOTH | ||
|
||
### Configuration | ||
To select features and extensions, `--with-dl=both` may be replaced by zero or more of: | ||
|
||
* `--enable-dl-tag`: Enable the definition list tag extension with the default (`discount`) tag style | ||
* `--with-dl=`*tagstyle*: Set the tags that define `<dl>`s to *tagstyle*. *Tagstyle* must be one of `discount`, `extra`, or `both`. Implies `--enable-dl-tag`. | ||
* `--enable-pandoc-header`: Use pandoc-style header blocks | ||
* `--enable-superscript`: `A^B` becomes A<sup>B</sup> | ||
* `--enable-amalloc`: Enable memory allocation debugging | ||
* `--with-tabstops=`*N*: Set tabstops to *N* characters (default 4) | ||
* `--enable-alpha-list`: Enable `(a)/(b)/(c)` list markers | ||
* `--enable-all-features`: Turn on all stable optional features | ||
|
||
## Notes | ||
1. This is not a port from POSIX to native Plan 9 APIs. The supplied | ||
`mkfile` merely drives Discount's own `configure.sh` through Plan 9's | ||
*APE* environment (in *pcc*(1)) to build the Discount source, then | ||
copies the result to locations appropriate for system-wide use on | ||
Plan 9. | ||
|
||
2. There are a few other *mk*(1) targets: | ||
* `install.libs`: Discount includes a C library and header. | ||
Installation is optional. Plan 9 binaries are statically linked. | ||
* `install.man`: Add manual pages for *markdown* in sections 1, 2, and 6. | ||
* `install.progs`: Extra programs. *makepage* writes complete XHTML | ||
documents, rather than fragments. *mkd2html* is similar, but produces | ||
HTML. | ||
|
||
3. `CONFIG`, the argument list given to `../configure.sh`, must contain at least `--with-dl=both` to produce a binary that | ||
passes `../discount/tests/dl.t`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters