Code

fb.txt: Dynamically determine the build date for the manpage as well.
authorSebastian Harl <sh@tokkee.org>
Wed, 8 Feb 2012 18:34:09 +0000 (19:34 +0100)
committerSebastian Harl <sh@tokkee.org>
Wed, 8 Feb 2012 18:34:09 +0000 (19:34 +0100)
doc/Makefile.am
doc/fb.txt

index c07bab1f9f6b7a4c59811f7bd87bf0ada1cb08c1..aca1d7e1779484dd8d6efe214d9e70e265114fca 100644 (file)
@@ -6,5 +6,8 @@ man_MANS = fb.1
 fb.1: fb.txt ../version
 
 .txt.1:
-       a2x -d manpage -f manpage -apackage_version=$(PACKAGE_VERSION) $<
+       a2x -d manpage -f manpage \
+               -apackage_version=$(PACKAGE_VERSION) \
+               -abuild_date="$$( date --utc '+%F' )" \
+               $<
 
index 7e6516ceebe2dda973032a7614394fc8aaab51f7..4b6f31c0d5276bc14101ae8e49d951a892483f8c 100644 (file)
@@ -1,7 +1,7 @@
 FB(1)
 =====
 Sebastian "tokkee" Harl <sh@tokkee.org>
-version {package_version}, 2012-02-08
+version {package_version}, {build_date}
 :doctype: manpage
 
 NAME