]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
man: install all manpages that redirect to another manpage
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 30 Sep 2020 14:59:15 +0000 (10:59 -0400)
committerEric Sandeen <sandeen@sandeen.net>
Wed, 30 Sep 2020 14:59:15 +0000 (10:59 -0400)
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 <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Allison Collins <allison.henderson@oracle.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
include/buildmacros

index f8d54200382ad7cc796be67e63cf3a4f4ebefda5..6f34d7c528fafad30d7b0cde1cd0f2cc60e3e880 100644 (file)
@@ -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; \