From: Darrick J. Wong Date: Wed, 30 Sep 2020 14:59:15 +0000 (-0400) Subject: man: install all manpages that redirect to another manpage X-Git-Tag: xfsprogs-5.9-fixes2_2020-10-10~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2f38a4b795c9a3826ce496b2cbaedf1b9122621;p=thirdparty%2Fxfsprogs-dev.git man: install all manpages that redirect to another manpage Some of the ioctl manpages do not contain any information other than a pointer to a different manpage. These aren't picked up by the install scripts, so fix them so that they do. Signed-off-by: Darrick J. Wong Reviewed-by: Christoph Hellwig Reviewed-by: Allison Collins Signed-off-by: Eric Sandeen --- diff --git a/include/buildmacros b/include/buildmacros index f8d542003..6f34d7c52 100644 --- a/include/buildmacros +++ b/include/buildmacros @@ -95,9 +95,10 @@ INSTALL_MAN = \ @for d in $(MAN_PAGES); do \ first=true; \ for m in `$(AWK) \ - '/^\.S[h|H] NAME/ {ok=1; next} ok {print; exit}' $$d \ + '/^\.S[h|H] NAME/ {ok=1; next} /^\.so/ {printf("so %s\n", FILENAME); exit} ok {print; exit}' $$d \ | $(SED) \ -e 's/^\.Nm //' -e 's/,/ /g' -e 's/\\-.*//' \ + -e 's/^so \([_a-zA-Z]*\)\.[0-9]/\1/g' \ -e 's/\\\f[0-9]//g' -e 's/ / /g;q'`; \ do \ [ -z "$$m" -o "$$m" = "\\" ] && continue; \