add directory gnu

This commit is contained in:
gohigh
2024-02-19 00:24:47 -05:00
parent 32616db5a4
commit a40f4cadb0
5086 changed files with 1860970 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
BEGIN { wantcall=0; calls=""; }
NF == 1 && ($1 == "routine" || $1 == "simpleroutine") \
{ wantcall=1; next; }
wantcall == 0 && NF >= 2 && ($1 == "routine" || $1 == "simpleroutine") \
{
if (substr($2, length($2)-2, 1) == "(")
calls = calls " " substr($2, 0, length($2)-1);
else calls = calls " " $2;
}
wantcall == 1 && NF >= 1 \
{
if (substr($1, length($1)-2, 1) == "(")
calls = calls " " substr($1, 0, length($1)-1);
else calls = calls " " $1;
}
{ wantcall=0; }
END { print varname " :=" calls; }