[PATCH 3/4] wmclock: Get manpage date from ChangeLog instead of manually updating.

Doug Torrance <[email protected]>
Newsgroups gmane.compw.window-managers.windowmaker.devel
Message-ID <[email protected]>
---
 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
-- 
2.1.4


-- 
To unsubscribe, send mail to [email protected].
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.