man(1): ignore absolute path for .so include

We want only a relative include, as ".so man1/foobar.1"

MFC after:	1 week
This commit is contained in:
Wolfram Schneider
2024-06-03 16:00:42 +00:00
parent 80828c6fab
commit 965fff9826
+2 -1
View File
@@ -324,7 +324,8 @@ man_check_for_so() {
do
line=$($cattool "$manpage" 2>/dev/null | grep -E -m1 -v '^\.\\"[ ]*|^[ ]*$')
case "$line" in
.so*) trim "${line#.so}"
'.so /'*) break ;; # ignore absolute path
'.so '*) trim "${line#.so}"
decho "$manpage includes $tstr"
# Glob and check for the file.
if ! check_man "$1/$tstr" ""; then