meso-web

Sources of the |Méso|Star> website
git clone git://git.meso-star.fr/meso-web.git
Log | Files | Refs | README | LICENSE

commit c641beaab9c2fd0f150ffe63d4fa021087d2c9a2
parent 7799cc0b6690b30cccfd45dca90546e12b955719
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Sun, 28 Apr 2024 16:09:49 +0200

Update mdoc translation script

Make the path to htrdr-image and htpp man pages relative to the site
root. This is in anticipation of man pages referencing them from
sections that are not the htrdr section. For example, in the Stardis
manual pages.

Remove the link to wordexp as its man page is not available locally.

Diffstat:
Mconvert_mdoc.sh | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/convert_mdoc.sh b/convert_mdoc.sh @@ -42,12 +42,15 @@ root="../../../" -e 's/"Nm">htrdr-image/"Nm">htrdr\&#8209;image/g' \ -e 's/"Nm">htrdr-materials/"Nm">htrdr\&#8209;materials/g' \ -e 's/"Nm">htrdr-planeto/"Nm">htrdr\&#8209;planeto/g' \ + -e "s#href=\"../man1/htpp.1.html\"#href=\"${root}htrdr/man/man1/htpp.1.html\"#g" \ + -e "s#href=\"../man5/htrdr-image.5.html\"#href=\"${root}htrdr/man/man5/htrdr-image.5.html\"#g" \ -e 's/<a class="Xr"[^>]\{0,\}>csplit(1)<\/a>/<a class "Xr">csplit(1)<\/a>/g' \ -e 's/<a class="Xr"[^>]\{0,\}>gnuplot(1)<\/a>/<a class "Xr">gnuplot(1)<\/a>/g' \ -e 's/<a class="Xr"[^>]\{0,\}>mmap(2)<\/a>/<a class "Xr">mmap(2)<\/a>/g' \ -e 's/<a class="Xr"[^>]\{0,\}>mpirun(1)<\/a>/<a class "Xr">mpirun(1)<\/a>/g' \ -e 's/<a class="Xr"[^>]\{0,\}>ppm(5)<\/a>/<a class "Xr">ppm(5)<\/a>/g' \ - -e 's/<a class="Xr"[^>]\{0,\}>sysconf(3)<\/a>/<a class "Xr">sysconf(3)<\/a>/g' + -e 's/<a class="Xr"[^>]\{0,\}>sysconf(3)<\/a>/<a class "Xr">sysconf(3)<\/a>/g' \ + -e 's/<a class="Xr"[^>]\{0,\}>wordexp(3)<\/a>/<a class "Xr">wordexp(3)<\/a>/g' print_footer } > "${output}"