tools: Add multi-language support to blockreplace.py

Suggested-by: Rusty Russell <@rustyrussell>
This commit is contained in:
Christian Decker
2022-12-05 13:45:10 +01:00
committed by Rusty Russell
parent 744d111cea
commit a31575ca0b
2 changed files with 30 additions and 7 deletions

View File

@@ -200,5 +200,5 @@ doc/index.rst: $(MANPAGES:=.md)
find doc -maxdepth 1 -name '*\.[0-9]\.md' | \
cut -b 5- | LC_ALL=C sort | \
sed 's/\(.*\)\.\(.*\).*\.md/\1 <\1.\2.md>/' | \
python3 devtools/blockreplace.py doc/index.rst manpages --indent " " \
python3 devtools/blockreplace.py doc/index.rst manpages --language=rst --indent " " \
)