run-format-readme.sh: handle non-root gitweb.cgi readme fragments
commit2273d8d75364a5f67af05ed981ae66c4240151f7
authorKyle J. McKay <mackyle@gmail.com>
Mon, 3 May 2021 02:03:31 +0000 (2 19:03 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Mon, 3 May 2021 02:03:31 +0000 (2 19:03 -0700)
treef00937edcd6c6926635229ca39e91a9813b4794d
parent40a86723214be3595b0449201eccf749a03767f4
run-format-readme.sh: handle non-root gitweb.cgi readme fragments

When the $Girocco::Config::gitweburl value does not point at a
"root" path (e.g. "http://some.example.com/") for gitweb.cgi, then
that must be accounted for when fixing up fragment links just like
it is when creating image/text links.

Use the first part of the "img" construction to make sure the
result works when gitweburl is not a "root" path.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
bin/run-format-readme.sh