mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-04-15 09:51:21 +00:00
doc: wikiparser: Reduce build verbosity
- Make begin and end markers the default values in the wikiparser arguments so that they don't have to passed in every time. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
099d877b8f
commit
95c99bf3ce
@ -107,11 +107,10 @@ $(manual-pdfs): %.pdf: %.xml
|
||||
$(manual-pages-part-html): %.part.html: %.xml
|
||||
xsltproc /usr/share/xml/docbook/stylesheet/docbook-xsl/xhtml5/docbook.xsl $< | \
|
||||
perl -pe 'BEGIN {undef $$/} s/.*<body[^>]*>(.*)<\/body\s*>.*/$$1/si' > $@
|
||||
rm -f $(dir $@)docbook.css
|
||||
@rm -f $(dir $@)docbook.css
|
||||
|
||||
$(manual-xmls) $(manual-pages-xml): %.xml: %.raw.wiki $(SCRIPTS_DIR)/wikiparser.py
|
||||
$(SCRIPTS_DIR)/wikiparser.py --begin-marker="## BEGIN_INCLUDE" \
|
||||
--end-marker='## END_INCLUDE' $< | xmllint --format - > $@
|
||||
$(SCRIPTS_DIR)/wikiparser.py $< | xmllint --format - > $@
|
||||
|
||||
%.1: %.xml
|
||||
xmlto man $<
|
||||
|
||||
@ -2047,9 +2047,9 @@ if __name__ == '__main__':
|
||||
help='Skip module doctests')
|
||||
parser.add_argument('--debug', action='store_true',
|
||||
help='Show parser output')
|
||||
parser.add_argument('--begin-marker', default=None,
|
||||
parser.add_argument('--begin-marker', default='## BEGIN_INCLUDE',
|
||||
help='Start parsing at this line')
|
||||
parser.add_argument('--end-marker', default=None,
|
||||
parser.add_argument('--end-marker', default='## END_INCLUDE',
|
||||
help='Stop parsing at this line')
|
||||
parser.add_argument('input', type=Path, nargs='*',
|
||||
help='input file path(s)')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user