Automatically set date in manual pages

Rely on Autoconf to set the date of manual pages to the date
the package was built.
develop
Damien Goutte-Gattat 6 years ago
parent c6832f4c7f
commit d3b8dd57fd
  1. 2
      configure.ac
  2. 2
      man/scdrand.1.in
  3. 2
      man/scdtotp.1.in

@ -45,6 +45,8 @@ AC_DEFINE_UNQUOTED([DEFAULT_PRIVATE_DO], [$with_default_do],
[Default private DO for scdtotp.])
AC_SUBST([DEFAULT_PRIVATE_DO], [$with_default_do])
AC_SUBST([BUILD_DATE], [`date +%Y-%m-%d`])
dnl Output files
AC_CONFIG_FILES([Makefile lib/Makefile src/Makefile
man/Makefile man/scdrand.1 man/scdtotp.1])

@ -1,4 +1,4 @@
.TH SCDRAND 11/08/2014 "scdtools @PACKAGE_VERSION@"
.TH SCDRAND @BUILD_DATE@ "scdtools @PACKAGE_VERSION@"
.SH NAME
scdrand \- Extract random numbers from a smartcard

@ -1,4 +1,4 @@
.TH SCDTOTP 18/12/2014 "scdtools @PACKAGE_VERSION@"
.TH SCDTOTP @BUILD_DATE@ "scdtools @PACKAGE_VERSION@"
.SH NAME
scdtotp \- Generate one-time passwords from an OpenPGP smartcard

Loading…
Cancel
Save