doc: wikiparser: Make it easier to run with a #! at the top

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Sunil Mohan Adapa 2020-09-09 01:39:25 -07:00
parent 95452c1313
commit 099d877b8f
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2
2 changed files with 2 additions and 1 deletions

View File

@ -110,7 +110,7 @@ $(manual-pages-part-html): %.part.html: %.xml
rm -f $(dir $@)docbook.css
$(manual-xmls) $(manual-pages-xml): %.xml: %.raw.wiki $(SCRIPTS_DIR)/wikiparser.py
python3 $(SCRIPTS_DIR)/wikiparser.py --begin-marker="## BEGIN_INCLUDE" \
$(SCRIPTS_DIR)/wikiparser.py --begin-marker="## BEGIN_INCLUDE" \
--end-marker='## END_INCLUDE' $< | xmllint --format - > $@
%.1: %.xml

1
doc/scripts/wikiparser.py Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/python3
# SPDX-License-Identifier: AGPL-3.0-or-later
"""
MoinMoin wiki parser