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 committed 2020-09-09 01:56:28 -07:00
1 parent 95452c1313
commit 099d877b8f
2 files changed
+2 -1

No files matched your search

+1 -1
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
Regular → Executable
+1
View File
@@ -1,3 +1,4 @@
#!/usr/bin/python3
# SPDX-License-Identifier: AGPL-3.0-or-later
"""
MoinMoin wiki parser