diff options
author | Ulrich Müller <ulm@gentoo.org> | 2020-01-18 09:31:55 +0100 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2020-01-18 09:31:55 +0100 |
commit | a127f6386c36615333f071d98128b66875551f33 (patch) | |
tree | 38305d854e61de9c2024afd950a43fa476d7c6b7 /bin | |
parent | bin/gen-eclass-html.sh: Don't include "Reference" in link texts. (diff) | |
download | devmanual-a127f6386c36615333f071d98128b66875551f33.tar.gz devmanual-a127f6386c36615333f071d98128b66875551f33.tar.bz2 devmanual-a127f6386c36615333f071d98128b66875551f33.zip |
bin/gen-eclass-html.sh: More postprocessing for man2html.
In order to silence the W3C Validator.
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/gen-eclass-html.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/gen-eclass-html.sh b/bin/gen-eclass-html.sh index db19761..6ecfe9c 100755 --- a/bin/gen-eclass-html.sh +++ b/bin/gen-eclass-html.sh @@ -112,6 +112,9 @@ for i in $(/usr/bin/qlist eclass-manpages) /usr/share/man/man5/ebuild.5*; do -e 's:<A HREF="[^"]*//localhost/[^"]*">\([^<>]*\)</A>:\1:g' \ -e 's:<A HREF="[^"]*\${[^"]*">\([^<>]*\)</A>:\1:g' \ -e 's:<TT>\([^<>]*\)</TT>:\1:g' \ + -e 's:<DL COMPACT>:<DL>:g' \ + -e 's:<TR VALIGN=top>:<TR>:g' \ + -e '/<A NAME/{N;s:<A NAME=\(.*\)>.*</A>\(.*<H[1-6]\)>:\2 ID=\1>:}' \ >> "${FINAL}" echo -n "${FOOTER}" >> "${FINAL}" done |