diff options
author | Alejandro Colomar <alx@kernel.org> | 2023-04-09 00:47:22 +0200 |
---|---|---|
committer | Alejandro Colomar <alx@kernel.org> | 2023-04-09 00:47:26 +0200 |
commit | 701ed069e19c47294ccfb18af0c74bca7d4bed6d (patch) | |
tree | 94c52b5198dcccb085c7d85042efffe9d844d2d0 | |
parent | b32f8bfef549aa8f528fc3f6b5c035e63d864578 (diff) |
install-man.mk: Fix symlink installation
Some pages have not only an '.so ' line, but also comments; ignore the
comments.
Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rw-r--r-- | lib/install-man.mk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/install-man.mk b/lib/install-man.mk index d4c231cd8..21359cff5 100644 --- a/lib/install-man.mk +++ b/lib/install-man.mk @@ -167,7 +167,8 @@ $(_manpages): $@ ifeq ($(LINK_PAGES),symlink) if $(GREP) '^\.so ' <$@ >/dev/null; then \ - $(SED) 's,^\.so \(.*\),../\1,' <$@ \ + $(GREP) '\.so ' <$@ \ + | $(SED) 's,^\.so \(.*\),../\1,' \ | $(XARGS) -I tgt $(LN) -fsT tgt $@; \ fi endif |