diff --git a/doc/RFC.md b/doc/RFC.md index 1a6b395..d66cacc 100644 --- a/doc/RFC.md +++ b/doc/RFC.md @@ -1,3 +1,11 @@ + + +> version 1.0.0 + +date: 2023-03-31T19:37:02+0200 (generated by `./make doc`) + +[![Actions Status](https://github.com/coderofsalvation/xrfragment/workflows/test/badge.svg)](https://github.com/coderofsalvation/xrfragment/actions) + # `://foo.com/my3d.asset#pos=1,0,0&prio=-5` diff --git a/make b/make index 4698aef..da2aa6b 100755 --- a/make +++ b/make @@ -33,30 +33,32 @@ tests(){ doc(){ { - echo '' - echo '' - echo "> version $VERSION" - echo "\ndate: $(date +"%Y-%m-%dT%H:%M:%S%z") (generated by \`./make doc\`)\n" - echo "[![Actions Status](https://github.com/coderofsalvation/xrfragment/workflows/test/badge.svg)](https://github.com/coderofsalvation/xrfragment/actions)\n" - cat src/xrfragment/URI.hx - cat src/xrfragment/Parser.hx - } | awk ' + echo '' + echo '' + echo "> version $VERSION" + echo "\ndate: $(date +"%Y-%m-%dT%H:%M:%S%z") (generated by \`./make doc\`)\n" + echo "[![Actions Status](https://github.com/coderofsalvation/xrfragment/workflows/test/badge.svg)](https://github.com/coderofsalvation/xrfragment/actions)\n" + { + cat src/xrfragment/URI.hx + cat src/xrfragment/Parser.hx + } | awk ' - /\/\/ / { - gsub(".*// ","",$0); - gsub("# ","\n# ",$0); - if( match($0,/^#code /) ){ print "```\n"; system("cat "$2); print "```\n"; next; } - if( match($0,/^#sh /) ){ $1=""; system($0); next; } - if( match($0,/#include /) ) { - o=$0; gsub(/.*#include/,"#include",$0); f=$2; $0=o; - cmd="cat "f - cmd | getline text; close(cmd) - gsub(/#include \w/, text) - } - print $0; - } + /\/\/ / { + gsub(".*// ","",$0); + gsub("# ","\n# ",$0); + if( match($0,/^#code /) ){ print "```\n"; system("cat "$2); print "```\n"; next; } + if( match($0,/^#sh /) ){ $1=""; system($0); next; } + if( match($0,/#include /) ) { + o=$0; gsub(/.*#include/,"#include",$0); f=$2; $0=o; + cmd="cat "f + cmd | getline text; close(cmd) + gsub(/#include \w/, text) + } + print $0; + } - ' > doc/RFC.md + ' + } > doc/RFC.md } test -z $1 && { try rm dist/* ; haxe build.hxml; sed -i 's|.*nonlocal .*||g' dist/xrfragment.py; exit $?; }