Bug 24742

Summary: macros: additional support for XORG_MANPAGE_SECTIONS
Product: xorg Reporter: Gaetan Nadon <memsize>
Component: Build/ModularAssignee: Gaetan Nadon <memsize>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: enhancement    
Priority: low Keywords: janitor
Version: git   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard: 2011BRB_Reviewed
i915 platform: i915 features:

Description Gaetan Nadon 2009-10-26 13:28:49 UTC
The following lines are used in 161 makefiles:

-----------------------------------------------------------------------
# Strings to replace in man pages
XORGRELSTRING = @PACKAGE_STRING@
  XORGMANNAME = X Version 11

SED = sed

MAN_SUBSTS = \
        -e 's|__vendorversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
        -e 's|__appmansuffix__|$(APP_MAN_SUFFIX)|g'
-------------------------------------------------------------------------

By adding to XORG_MANPAGE_SECTIONS macro:
  AC_REQUIRE([AC_PROG_SED])
  XORG_MAN_NAME='X Version 11'
  AC_SUBST([XORG_MAN_NAME])

we can write in all these makefiles:

-----------------------------------------------------------------------
# Strings to replace in man pages
MAN_SUBSTS = \
        -e 's|__vendorversion__|"$(PACAKGE_STRING)" "$(XORG_MAN_NAME)"|' \
        -e 's|__appmansuffix__|$(APP_MAN_SUFFIX)|g'
--------------------------------------------------------------------------

AC_PROG_SED will test for an appropriate sed program that does not truncate lines and set the SED variable accordingly.
Comment 1 Jeremy Huddleston Sequoia 2011-10-07 17:26:31 UTC
#6600 is kinda related...
Comment 2 Gaetan Nadon 2011-10-08 05:24:43 UTC
Done

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.