diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | Makefile.am | 34 | ||||
-rw-r--r-- | configure.ac | 1 |
3 files changed, 39 insertions, 3 deletions
@@ -1,3 +1,10 @@ +2005-10-11 Alan Coopersmith <alan.coopersmith@sun.com> + + * Makefile.am: + * configure.ac: + Use sed to put version number in man page + Add shadow man pages for man pages that document multiple functions. + 2005-09-21 Alan Coopersmith <alan.coopersmith@sun.com> * configure.ac: diff --git a/Makefile.am b/Makefile.am index 82211ca..6e3c372 100644 --- a/Makefile.am +++ b/Makefile.am @@ -29,6 +29,34 @@ xauinclude_HEADERS = include/X11/Xauth.h pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = xau.pc -man_MANS = Xau.3 - -EXTRA_DIST = xau.pc.in Autest.c $(man_MANS) +libmandir = $(mandir)/man$(LIB_MAN_SUFFIX) +libman_SOURCES = Xau.man +BUILT_SOURCES = .shadows.DONE +CLEANFILES = $(libman_DATA) +libman_DATA = $(libman_SOURCES:man=$(LIB_MAN_SUFFIX)) \ + $(Xau_shadows:=.$(LIB_MAN_SUFFIX)) + +EXTRA_DIST = xau.pc.in Autest.c $(libman_SOURCES) + +Xau_shadows = \ + XauFileName \ + XauReadAuth \ + XauLockAuth \ + XauUnlockAuth \ + XauWriteAuth \ + XauDisposeAuth \ + XauGetAuthByAddr \ + XauGetBestAuthByAddr + +.shadows.DONE: + -rm -f $(Xau_shadows:=.$(LIB_MAN_SUFFIX)) + (for i in $(Xau_shadows:=.$(LIB_MAN_SUFFIX)) ; do \ + echo .so man$(LIB_MAN_SUFFIX)/Xau.$(LIB_MAN_SUFFIX) > $$i; \ + done) + +XORGRELSTRING = @PACKAGE_STRING@ + XORGMANNAME = X Version 11 + +Xau.$(LIB_MAN_SUFFIX): $(srcdir)/Xau.man + sed 's/__xorgversion__/"$(XORGRELSTRING)" "$(XORGMANNAME)"/' \ + < $(srcdir)/Xau.man > Xau.$(LIB_MAN_SUFFIX) diff --git a/configure.ac b/configure.ac index a5ec7d7..a3051ca 100644 --- a/configure.ac +++ b/configure.ac @@ -69,6 +69,7 @@ if test "x$GCC" = "xyes"; then XAU_CFLAGS="$GCC_WARNINGS $XAU_CFLAGS" fi +XORG_MANPAGE_SECTIONS XORG_RELEASE_VERSION AC_OUTPUT([Makefile |