Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
17b878b3
Commit
17b878b3
authored
May 30, 2016
by
Guillaume Quintard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Recoding doxygen in awk is fun
parent
affce051
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
0 deletions
+41
-0
vtc-syntax.vtc
doc/sphinx/vtc-syntax.vtc
+41
-0
No files found.
doc/sphinx/vtc-syntax.vtc
0 → 100644
View file @
17b878b3
# end of paragraph if we hit '*/'
$0 ~ "*/" {
p = 0;
}
# if in paragraph and no section is announced,
# concatenate
p && $0 !~ "[ /]* SECTION: " {
cl[section] = cl[section] gensub(/ \* ?/, "", "1", $0) "\n";
}
# section announcement
$0 ~ "[ /]* SECTION: " {
section = $3;
sl[len++] = section;
tl[section] = gensub(/[\t ]*\/?\* SECTION: [^ ]+ +/, "", "1", $0);
p = 1;
}
# sort sections, underline titles, print
END {
asort(sl);
for (i in sl) {
section = sl[i]
print(tl[section]);
a = section
c = gsub(/\./, "", a);
if (c == 0)
r = "=";
else if (c == 1)
r = "*"
else if (c == 2)
r = "+"
else if (c == 3)
r = "-"
else
r = "."
print(gensub(/./, r, "g", tl[section]));
print(cl[section]);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment