update documentation
This commit is contained in:
parent
2ccda806f8
commit
48d5ac5f73
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue