packet:xrouter:manpages:parsing
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
packet:xrouter:manpages:parsing [2025/04/20 07:21] – m0mzf | packet:xrouter:manpages:parsing [2025/04/20 07:28] (current) – m0mzf | ||
---|---|---|---|
Line 58: | Line 58: | ||
} | } | ||
checkRoot () { | checkRoot () { | ||
- | if [[ $UID -eq 0 ]]; then; | + | if [[ $UID -eq 0 ]]; then |
echoRed " | echoRed " | ||
exit 1 | exit 1 | ||
Line 132: | Line 132: | ||
do | do | ||
# Get the penultimate field in file path, i.e. the section (folder) name | # Get the penultimate field in file path, i.e. the section (folder) name | ||
- | section=$(echo $folder | awk -F/ ' | + | local section=$(echo $folder | awk -F/ ' |
# Format the section name as a docuWiki header | # Format the section name as a docuWiki header | ||
echo " | echo " | ||
Line 141: | Line 141: | ||
do | do | ||
# Get the last field in file path, i.e. file name | # Get the last field in file path, i.e. file name | ||
- | title=$(echo $file | awk -F/ ' | + | local title=$(echo $file | awk -F/ ' |
+ | local outputpath=" | ||
# Format the file name as a docuwiki header | # Format the file name as a docuwiki header | ||
- | echo " | + | echo " |
case " | case " | ||
# For MAN files, after awk has done it's job we need to remove the last line; this last line breaks | # For MAN files, after awk has done it's job we need to remove the last line; this last line breaks | ||
# the following < | # the following < | ||
- | MANFILES) awk " | + | MANFILES) awk " |
- | echo -e "</ | + | echo -e "</ |
;; | ;; | ||
# For HLP files we don't want to remove the last line because that truly is real content | # For HLP files we don't want to remove the last line because that truly is real content | ||
- | HLPFILES) awk " | + | HLPFILES) awk " |
- | echo -e "</ | + | echo -e "</ |
;; | ;; | ||
esac | esac |
packet/xrouter/manpages/parsing.1745133698.txt.gz · Last modified: 2025/04/20 07:21 by m0mzf