Gentoo Archives: gentoo-commits

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/devmanual:master commit in: bin/
Date: Mon, 26 Oct 2020 15:42:08
Message-Id: 1601147200.7cb71c2f1ff1da24215f40d57732d59ae7b618a4.ulm@gentoo
1 commit: 7cb71c2f1ff1da24215f40d57732d59ae7b618a4
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 26 19:06:40 2020 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 26 19:06:40 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=7cb71c2f
7
8 bin/gen-eclass-html.sh: Generate html for make.conf(5).
9
10 Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
11
12 bin/gen-eclass-html.sh | 7 ++++---
13 1 file changed, 4 insertions(+), 3 deletions(-)
14
15 diff --git a/bin/gen-eclass-html.sh b/bin/gen-eclass-html.sh
16 index 23f481b..f7fcc73 100755
17 --- a/bin/gen-eclass-html.sh
18 +++ b/bin/gen-eclass-html.sh
19 @@ -124,8 +124,9 @@ shift $((OPTIND-1))
20 MANPAGES=()
21 [[ -n ${NOMAN} ]] || MANPAGES=(
22 $(/usr/bin/qlist -e eclass-manpages)
23 - # We also need the ebuild man page
24 + # We also need a couple of portage man pages
25 /usr/share/man/man5/ebuild.5*
26 + /usr/share/man/man5/make.conf.5*
27 ) || exit 1
28
29 [[ -d ${OUTPUTDIR} ]] || mkdir -p "${OUTPUTDIR}" || exit 1
30 @@ -142,10 +143,10 @@ for i in "${MANPAGES[@]}"; do
31 touch "${DIRNAME}" || exit 1
32 # rebuild the man page each time
33 echo -n "${HEADER//@TITLE@/${BASENAME}}" > "${FINAL}" || exit 1
34 - # generate html pages and fix hyperlinks for eclass and ebuild man pages
35 + # generate html pages and fix hyperlinks for eclass and other man pages
36 ${DECOMPRESS} "${i}" | /usr/bin/man2html -r \
37 | sed -e '1,/<BODY>/d;/<\/BODY>/,$d' \
38 - -e '/<A HREF=/s:"\.\./man5/\([^"]*eclass\|ebuild\)\.5\.html":"../\1/index.html":g' \
39 + -e '/<A HREF=/s:"\.\./man5/\([^"]*eclass\|ebuild\|make\.conf\)\.5\.html":"../\1/index.html":g' \
40 -e 's:<A HREF="\.\./man[^"]*">\([^<>]*\)</A>:\1:g' \
41 -e 's:<A HREF="[^"]*//localhost/[^"]*">\([^<>]*\)</A>:\1:g' \
42 -e 's:<A HREF="[^"]*\${[^"]*">\([^<>]*\)</A>:\1:g' \