open-src/lib/libXi/shadow-man-pages.patch
changeset 1215 924b7feb31b8
equal deleted inserted replaced
1214:66778b3a7858 1215:924b7feb31b8
       
     1 From 194e09bd80c96bd3826b455e8c38371770889217 Mon Sep 17 00:00:00 2001
       
     2 From: Alan Coopersmith <[email protected]>
       
     3 Date: Fri, 16 Sep 2011 18:51:21 -0700
       
     4 Subject: [PATCH:libXi] Make shadow man pages generated by asciidoc work with Solaris man
       
     5 
       
     6 Solaris man requires .so entries in man pages include the man section
       
     7 directory, not just the man page filename, even when it's in the same
       
     8 directory, so use sed to add it in.
       
     9 
       
    10 Signed-off-by: Alan Coopersmith <[email protected]>
       
    11 ---
       
    12  man/Makefile.am |    3 +++
       
    13  1 files changed, 3 insertions(+), 0 deletions(-)
       
    14 
       
    15 diff --git a/man/Makefile.am b/man/Makefile.am
       
    16 index d4c37b3..28211a1 100644
       
    17 --- a/man/Makefile.am
       
    18 +++ b/man/Makefile.am
       
    19 @@ -159,6 +159,9 @@ MAN_SUBSTS += -e 's/libmansuffix/$(LIB_MAN_SUFFIX)/g'
       
    20  MAN_SUBSTS += -e 's/\[FIXME: source\]/$(XORG_MAN_PAGE)/'
       
    21  MAN_SUBSTS += -e 's/\[FIXME: manual\]/XINPUT FUNCTIONS/'
       
    22  
       
    23 +# asciidoc generates shadow page references without the man section directory
       
    24 +MAN_SUBSTS += -e 's/^\.so X/.so man$(LIB_MAN_SUFFIX)\/X/'
       
    25 +
       
    26  SUFFIXES = .man .$(LIB_MAN_SUFFIX)
       
    27  .man.$(LIB_MAN_SUFFIX):
       
    28  	$(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
       
    29 -- 
       
    30 1.7.3.2
       
    31