From c2462c2e7ba2142395ea58a9b2b1287e2c103478 Mon Sep 17 00:00:00 2001 From: Doug Torrance Date: Thu, 24 Sep 2015 02:24:09 -0400 Subject: [PATCH] wmclock: Get manpage date from ChangeLog instead of manually updating. --- wmclock/configure.ac | 2 ++ wmclock/wmclock.1.in | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/wmclock/configure.ac b/wmclock/configure.ac index 82a2382..8909b6d 100644 --- a/wmclock/configure.ac +++ b/wmclock/configure.ac @@ -21,6 +21,8 @@ AC_DEFINE_UNQUOTED(MONTH_XPM, ["${LangDir}/month.xpm"]) AC_DEFINE_UNQUOTED(WEEKDAY_XPM, ["${LangDir}/weekday.xpm"]) AC_MSG_NOTICE([configuring for ${with_lang} day-of-week and month names...]) +AC_SUBST(DATE, "esyscmd(head -n 1 ChangeLog | cut -d' ' -f1 | tr -d '\n')") + PKG_CHECK_MODULES([x11], [x11]) PKG_CHECK_MODULES([xpm], [xpm]) PKG_CHECK_MODULES([xext], [xext]) diff --git a/wmclock/wmclock.1.in b/wmclock/wmclock.1.in index 39a3410..93fd077 100644 --- a/wmclock/wmclock.1.in +++ b/wmclock/wmclock.1.in @@ -21,7 +21,7 @@ .TP \\$1 .. .\" ---------------------------------------------------------------- -.TH wmclock 1 "2014-Dec-11" "Version @VERSION@" +.TH wmclock 1 @DATE@ "Version @VERSION@" .\" ---------------------------------------------------------------- .SH NAME wmclock \- A dockable clock for the Window Maker window manager