update documentation

This commit is contained in:
Leon van Kammen 2023-04-02 21:38:52 +02:00
parent 2ccda806f8
commit 48d5ac5f73
1 changed files with 13 additions and 13 deletions

View File

@ -12,22 +12,22 @@
# by changing the regexes # by changing the regexes
# #
/\$\(/ { cmd=$0; /\$\(/ { cmd=$0;
gsub(/^.*\$\(/,"",cmd); gsub(/^.*\$\(/,"",cmd);
gsub(/\).*/,"",cmd); gsub(/\).*/,"",cmd);
cmd | getline stdout; close(cmd); cmd | getline stdout; close(cmd);
sub(/\$\(.*\)/,stdout); sub(/\$\(.*\)/,stdout);
} }
/\/\*\*/ { doc=1; sub(/^.*\/\*/,""); } /\/\*\*/ { doc=1; sub(/^.*\/\*/,""); }
doc && /\*\// { doc=0; doc && /\*\// { doc=0;
sub(/[[:space:]]*\*\/.*/,""); sub(/[[:space:]]*\*\/.*/,"");
sub(/^[[:space:]]*\*[[:space:]]?/,""); sub(/^[[:space:]]*\*[[:space:]]?/,"");
print print
} }
doc && /^[[:space:]]*\*/ { sub(/^[[:space:]]*\*[[:space:]]?/,""); doc && /^[[:space:]]*\*/ { sub(/^[[:space:]]*\*[[:space:]]?/,"");
print print
} }
!doc && /\/\/ / { sub(".*// ",""); !doc && /\/\/ / { sub(".*// ","");
sub("# ","\n# "); sub("# ","\n# ");
sub("> ","\n> "); sub("> ","\n> ");
print print
} }