From efa999e3773894e80e25a44d778666d617742f19 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 25 Jan 2022 11:27:27 +1000 Subject: man: use @VERSION@ for the driver version Makes use of meson easier which requires @ as pre/suffix for variables. Signed-off-by: Peter Hutterer --- man/Makefile.am | 3 +++ man/libinput.man | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/man/Makefile.am b/man/Makefile.am index 8e4bb60..edd9313 100644 --- a/man/Makefile.am +++ b/man/Makefile.am @@ -32,6 +32,9 @@ CLEANFILES = $(driverman_DATA) SUFFIXES = .$(DRIVER_MAN_SUFFIX) .man +MAN_SUBSTS += \ + -e 's|\@VERSION\@|$(PACKAGE_NAME) $(PACKAGE_VERSION)|g' + # String replacements in MAN_SUBSTS now come from xorg-macros.m4 via configure .man.$(DRIVER_MAN_SUFFIX): $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@ diff --git a/man/libinput.man b/man/libinput.man index ddd126a..4238538 100644 --- a/man/libinput.man +++ b/man/libinput.man @@ -1,6 +1,6 @@ .\" shorthand for double quote that works everywhere. .ds q \N'34' -.TH LIBINPUT 4 __vendorversion__ +.TH LIBINPUT 4 @VERSION@ .SH NAME libinput \- libinput-based X.Org input driver .SH SYNOPSIS -- cgit v1.2.3