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
#
/\$\(/ { cmd=$0;
gsub(/^.*\$\(/,"",cmd);
gsub(/\).*/,"",cmd);
cmd | getline stdout; close(cmd);
gsub(/^.*\$\(/,"",cmd);
gsub(/\).*/,"",cmd);
cmd | getline stdout; close(cmd);
sub(/\$\(.*\)/,stdout);
}
/\/\*\*/ { doc=1; sub(/^.*\/\*/,""); }
/\/\*\*/ { doc=1; sub(/^.*\/\*/,""); }
doc && /\*\// { doc=0;
sub(/[[:space:]]*\*\/.*/,"");
sub(/^[[:space:]]*\*[[:space:]]?/,"");
print
}
sub(/[[:space:]]*\*\/.*/,"");
sub(/^[[:space:]]*\*[[:space:]]?/,"");
print
}
doc && /^[[:space:]]*\*/ { sub(/^[[:space:]]*\*[[:space:]]?/,"");
print
print
}
!doc && /\/\/ / { sub(".*// ","");
sub("# ","\n# ");
sub("> ","\n> ");
print
}
sub("# ","\n# ");
sub("> ","\n> ");
print
}