man: simplify generating manpage

No need for extra sed run, just use autoconf to do the job.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2026-01-08 15:58:18 +01:00
committed by Enrico Weigelt
parent 8a615bda5d
commit 9d21fc7252
4 changed files with 6 additions and 8 deletions

View File

@@ -55,5 +55,5 @@ AC_SUBST(inputdir)
PKG_CHECK_MODULES(XORG, [xorg-server >= 25.0.0])
AC_CONFIG_FILES([Makefile src/Makefile man/Makefile])
AC_CONFIG_FILES([Makefile src/Makefile man/Makefile man/elographics.man])
AC_OUTPUT

1
man/.gitignore vendored
View File

@@ -1,2 +1,3 @@
Makefile
Makefile.in
elographics.man

View File

@@ -27,16 +27,13 @@
DRIVER_MAN_SUFFIX = 4
drivermandir = $(mandir)/man$(DRIVER_MAN_SUFFIX)
driverman_PRE = elographics.man
driverman_DATA = $(driverman_PRE:man=$(DRIVER_MAN_SUFFIX))
driverman_DATA = elographics.$(DRIVER_MAN_SUFFIX)
EXTRA_DIST = elographics.man
CLEANFILES = $(driverman_DATA)
SUFFIXES = .$(DRIVER_MAN_SUFFIX) .man
# SUFFIXES = .$(DRIVER_MAN_SUFFIX) .man
.man.$(DRIVER_MAN_SUFFIX):
$(AM_V_GEN)$(SED) -e 's|__packagestring__|$(PACKAGE_STRING)|' < $< > $@
cp $< $@

View File

@@ -1,6 +1,6 @@
.\" shorthand for double quote that works everywhere.
.ds q \N'34'
.TH ELOGRAPHICS 4 2011-07-08 "__packagestring__" "X Version 11"
.TH ELOGRAPHICS 4 2011-07-08 "@PACKAGE_STRING@" "X Version 11"
.SH NAME
elographics \- Elographics input driver for XLibre X server
.SH SYNOPSIS