summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-09-16 21:00:19 -0700
committerPeter Hutterer <peter.hutterer@who-t.net>2011-09-22 09:24:04 +1000
commit2eb34db82dbd8429594c7ce1d361cabf3571edf1 (patch)
tree8e650fa404ef71dd8be5e085609754932f8156f1
parenta43c0a5d2a6cf80df314c96e0b58804dd87868be (diff)
Make shadow man pages generated by asciidoc work with Solaris man
Solaris man requires .so entries in man pages include the man section directory, not just the man page filename, even when it's in the same directory, so use sed to add it in. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> This may be a temporary fix only. See http://lists.freedesktop.org/archives/xorg-devel/2011-September/025219.html Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--man/Makefile.am3
1 files changed, 3 insertions, 0 deletions
diff --git a/man/Makefile.am b/man/Makefile.am
index d4c37b3..28211a1 100644
--- a/man/Makefile.am
+++ b/man/Makefile.am
@@ -159,6 +159,9 @@ MAN_SUBSTS += -e 's/libmansuffix/$(LIB_MAN_SUFFIX)/g'
MAN_SUBSTS += -e 's/\[FIXME: source\]/$(XORG_MAN_PAGE)/'
MAN_SUBSTS += -e 's/\[FIXME: manual\]/XINPUT FUNCTIONS/'
+# asciidoc generates shadow page references without the man section directory
+MAN_SUBSTS += -e 's/^\.so X/.so man$(LIB_MAN_SUFFIX)\/X/'
+
SUFFIXES = .man .$(LIB_MAN_SUFFIX)
.man.$(LIB_MAN_SUFFIX):
$(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@