diff options
author | Alan Coopersmith <Alan.Coopersmith@sun.com> | 2005-10-13 02:59:40 +0000 |
---|---|---|
committer | Alan Coopersmith <Alan.Coopersmith@sun.com> | 2005-10-13 02:59:40 +0000 |
commit | 5f4f9ea6a1541dc36e767bbc7755ed226b6798e3 (patch) | |
tree | c6e7c71acc1d737eeef0e4f026f3735b60c3c999 | |
parent | 56a6cff97f15a01f0ed8a58e26bcdca815c65d6e (diff) | |
download | xorg-lib-libXp-5f4f9ea6a1541dc36e767bbc7755ed226b6798e3.tar.gz |
Use sed to fill in variables in man pages
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | man/Makefile.am | 52 |
3 files changed, 57 insertions, 2 deletions
@@ -1,3 +1,9 @@ +2005-10-12 Alan Coopersmith <alan.coopersmith@sun.com> + + * man/Makefile.am: + * configure.ac: + Use sed to fill in variables in man pages + 2005-07-14 Keith Packard <keithp@keithp.com> * src/Makefile.am: diff --git a/configure.ac b/configure.ac index 80cce1f..6b777fb 100644 --- a/configure.ac +++ b/configure.ac @@ -41,6 +41,7 @@ PKG_CHECK_MODULES(XPRINT, x11 xext xau printproto) AC_SUBST(XPRINT_CFLAGS) AC_SUBST(XPRINT_LIBS) +XORG_MANPAGE_SECTIONS XORG_RELEASE_VERSION AC_OUTPUT([Makefile diff --git a/man/Makefile.am b/man/Makefile.am index e2274a2..48371f2 100644 --- a/man/Makefile.am +++ b/man/Makefile.am @@ -1,4 +1,33 @@ -man_MANS = \ +# $Id$ +# +# Copyright 2005 Sun Microsystems, Inc. All rights reserved. +# +# Permission to use, copy, modify, distribute, and sell this software and its +# documentation for any purpose is hereby granted without fee, provided that +# the above copyright notice appear in all copies and that both that +# copyright notice and this permission notice appear in supporting +# documentation. +# +# The above copyright notice and this permission notice shall be included +# in all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +# IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR +# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +# OTHER DEALINGS IN THE SOFTWARE. +# +# Except as contained in this notice, the name of the copyright holders shall +# not be used in advertising or otherwise to promote the sale, use or +# other dealings in this Software without prior written authorization +# from the copyright holders. +# + +libmandir = $(mandir)/man$(LIB_MAN_SUFFIX) + +libman_SOURCES = \ libXp.3 \ XpCancelDoc.3 \ XpCancelJob.3 \ @@ -34,4 +63,23 @@ man_MANS = \ XpStartJob.3 \ XpStartPage.3 -EXTRA_DIST=$(man_MANS) + +EXTRA_DIST = $(libman_SOURCES) + +CLEANFILES = $(libman_DATA) + +libman_DATA = $(libman_SOURCES:man=$(LIB_MAN_SUFFIX)) + +SED = sed + +# Strings to replace in man pages +XORGRELSTRING = @PACKAGE_STRING@ + XORGMANNAME = X Version 11 + +MAN_SUBSTS = -e 's/__xorgversion__/"$(XORGRELSTRING)" "$(XORGMANNAME)"/' + +SUFFIXES = .$(LIB_MAN_SUFFIX) .man + +.man.$(LIB_MAN_SUFFIX): + sed $(MAN_SUBSTS) < $< > $@ + |