summaryrefslogtreecommitdiff
path: root/man/make_man_page.py
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-12-17 11:16:49 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2014-12-17 11:18:39 -0800
commit0479ddaeb0f54f960db0537ee1f39702ae400eb8 (patch)
tree1ff1f7843a226be874e667e29aa0888ba4c95fe4 /man/make_man_page.py
parent9bd750ff2dda8fe1fd013bfb749bc2a8038b1c3c (diff)
Create cmark.3 in cmake build process.
Remove it from the repository. Closes #241.
Diffstat (limited to 'man/make_man_page.py')
-rw-r--r--man/make_man_page.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/man/make_man_page.py b/man/make_man_page.py
index 2a7f9ab..e7c5f69 100644
--- a/man/make_man_page.py
+++ b/man/make_man_page.py
@@ -2,6 +2,8 @@
# Creates a man page from a C file.
+# first argument if present is path to cmark dynamic library
+
# Comments beginning with `/**` are treated as Groff man, except that
# 'this' is converted to \fIthis\f[], and ''this'' to \fBthis\f[].
@@ -19,9 +21,9 @@ from ctypes import CDLL, c_char_p, c_long, c_void_p
sysname = platform.system()
if sysname == 'Darwin':
- cmark = CDLL("build/src/libcmark.dylib")
+ cmark = CDLL("../src/libcmark.dylib")
else:
- cmark = CDLL("build/src/libcmark.so")
+ cmark = CDLL("../src/libcmark.so")
parse_document = cmark.cmark_parse_document
parse_document.restype = c_void_p