xrfragment/doc/generate.sh

10 lines
289 B
Bash
Raw Normal View History

2023-09-01 14:20:02 +02:00
#!/bin/sh
set -e
2023-09-21 13:05:30 +02:00
for topic in Fragments Macros; do
mmark RFC_XR_$topic.md > RFC_XR_$topic.xml
mmark --html RFC_XR_$topic.md | grep -vE '(<!--{|}-->)' > RFC_XR_$topic.html
xml2rfc --v3 RFC_XR_$topic.xml # RFC_XR_$topic.txt
sed -i 's/Expires: .*//g' RFC_XR_$topic.txt
done