File tree Expand file tree Collapse file tree 5 files changed +540
-0
lines changed Expand file tree Collapse file tree 5 files changed +540
-0
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,9 @@ include_directories(. ${CMAKE_CURRENT_BINARY_DIR})
5656configure_file (${CMAKE_CURRENT_SOURCE_DIR} /cmark_version.h.in
5757 ${CMAKE_CURRENT_BINARY_DIR} /cmark_version.h)
5858
59+ configure_file (${CMAKE_CURRENT_SOURCE_DIR} /cmark-format.in
60+ ${CMAKE_CURRENT_BINARY_DIR} /cmark-format)
61+
5962include (GenerateExportHeader)
6063
6164add_executable (${PROGRAM} ${PROGRAM_SOURCES} )
Original file line number Diff line number Diff line change 1+ #!/usr/bin/env python3
2+
3+ import os
4+ import sys
5+ import argparse
6+
7+ HERE = "@CMAKE_CURRENT_SOURCE_DIR@"
8+ sys .path .append (HERE )
9+ sys .path .append (os .path .join (HERE , os .pardir , 'wrappers' ))
10+
11+ from remarkor import *
12+ from wrapper import conf
13+
14+ conf .set_library_path ("@CMAKE_CURRENT_BINARY_DIR@" )
15+
16+ if __name__ == '__main__' :
17+ arg_parser = argparse .ArgumentParser ()
18+ arg_parser .add_argument ('input' )
19+ arg_parser .add_argument ('--width' , type = int , default = 80 )
20+ args = arg_parser .parse_args ()
21+
22+ remarkor = Remarkor .from_filename (args .input )
23+ res = remarkor .remark (width = args .width )
24+ sys .stdout .write (res )
You can’t perform that action at this time.
0 commit comments