summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2006-08-24 19:21:47 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2006-08-24 19:21:47 -0700
commitc7d048dacf3fce6f3121cf0114fd08bb130130b8 (patch)
treedb3414c6cf3a14edf7b0fc812c97caa588176879
parent8c73ee726016dae6f56195d44339b4729121bcf2 (diff)
Use version number from configure.ac in Xcursor.man instead of "Version 1.0"
-rw-r--r--man/Makefile.am5
-rw-r--r--man/Xcursor.man2
2 files changed, 5 insertions, 2 deletions
diff --git a/man/Makefile.am b/man/Makefile.am
index 00778a8..267572d 100644
--- a/man/Makefile.am
+++ b/man/Makefile.am
@@ -10,6 +10,9 @@ CLEANFILES = $(libman_DATA)
SUFFIXES = .$(LIB_MAN_SUFFIX) .man
+# Strings to replace in man pages
+XORGRELSTRING = @PACKAGE_STRING@
+
.man.$(LIB_MAN_SUFFIX):
-rm -f $@
- $(LN_S) $< $@
+ sed 's/__xorgversion__/"$(XORGRELSTRING)"/; s/__LIB_MAN_SUFFIX__/$(LIB_MAN_SUFFIX)/' < $< > $@
diff --git a/man/Xcursor.man b/man/Xcursor.man
index c187579..81535e9 100644
--- a/man/Xcursor.man
+++ b/man/Xcursor.man
@@ -26,7 +26,7 @@
.ns
.TP \\$1
..
-.TH XCURSOR 3 "Version 1.0" "Keith Packard"
+.TH XCURSOR __LIB_MAN_SUFFIX__ __xorgversion__ "Keith Packard"
.SH NAME
XCURSOR \- Cursor management library