Bug 24742 - macros: additional support for XORG_MANPAGE_SECTIONS
Summary: macros: additional support for XORG_MANPAGE_SECTIONS
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Build/Modular (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: low enhancement
Assignee: Gaetan Nadon
QA Contact: Xorg Project Team
URL:
Whiteboard: 2011BRB_Reviewed
Keywords: janitor
Depends on:
Blocks:
 
Reported: 2009-10-26 13:28 UTC by Gaetan Nadon
Modified: 2011-10-08 05:24 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.