xrfragment-haxe/doc/generate.sh

9 lines
289 B
Bash
Executable file

#!/bin/sh
set -e
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