packet:xrouter:docs:parsing
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
packet:xrouter:docs:parsing [2025/04/26 19:26] – m0mzf | packet:xrouter:docs:parsing [2025/04/26 21:44] (current) – m0mzf | ||
---|---|---|---|
Line 102: | Line 102: | ||
awkParseMan=' | awkParseMan=' | ||
{ | { | ||
- | if (NR> | + | if (NR> |
- | if (NR> | + | if (NR> |
if (NR==1 || NR==2) # For the first two lines | if (NR==1 || NR==2) # For the first two lines | ||
Line 121: | Line 121: | ||
print "</ | print "</ | ||
} | } | ||
- | else if (NR>lno && NR<(recs -1) && NF>0) # If we' | + | else if (NR>lno && NR<(recs -1) && NF>0) # If we are in SEE ALSO and are not EOF and have non-empty lines |
{ | { | ||
line=$0 # | line=$0 # | ||
Line 155: | Line 155: | ||
' | ' | ||
+ | # File enumerator / reader / writer | ||
parseFiles () { | parseFiles () { | ||
mkdir " | mkdir " | ||
Line 193: | Line 194: | ||
# Parse the file! | # Parse the file! | ||
awk -v flag=0 -v recs=" | awk -v flag=0 -v recs=" | ||
+ | # Add a link back to index page | ||
+ | echo " | ||
# Add a line break after each MAN entry | # Add a line break after each MAN entry | ||
- | echo -e "\n\n----\n\n" >> " | + | echo -e " |
# and add an entry to the index | # and add an entry to the index | ||
echo " | echo " | ||
Line 203: | Line 206: | ||
awk " | awk " | ||
echo "</ | echo "</ | ||
+ | # Add a link back to index page | ||
+ | echo " | ||
echo " | echo " | ||
;; | ;; | ||
Line 217: | Line 222: | ||
echo " | echo " | ||
echo "This content is auto-generated from the XRouter documentation using [[$NAMESPACE: | echo "This content is auto-generated from the XRouter documentation using [[$NAMESPACE: | ||
- | echoGreen " | + | echoGreen " |
parseFiles MAN | parseFiles MAN | ||
- | echoGreen " | + | echoGreen " |
parseFiles HLP | parseFiles HLP | ||
- | #echoGreen " | + | #echoGreen " |
#parseFiles DOC | #parseFiles DOC | ||
</ | </ |
packet/xrouter/docs/parsing.1745695597.txt.gz · Last modified: by m0mzf