]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
doc: include chrony version in manual title
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 14 Oct 2015 12:43:47 +0000 (14:43 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Wed, 14 Oct 2015 13:03:45 +0000 (15:03 +0200)
chrony.texi.in
configure

index faab2eaa000159f3b1c0bd56a712ff4d1eb3038c..b56fb819cee102ca894add11e6078cfbf06b0a80 100644 (file)
@@ -3,7 +3,7 @@
 @afourwide
 @paragraphindent 0
 @setfilename chrony.info
-@settitle User guide for the chrony suite
+@settitle User guide for the chrony suite version @CHRONY_VERSION@
 @c @setchapternewpage off
 
 @ifinfo
index 314214915dfc39f6962c0cb690500532fea6295e..84f811a359207083dc46ff11f5e4da697415d538 100755 (executable)
--- a/configure
+++ b/configure
@@ -809,11 +809,13 @@ add_def CHRONYD_FEATURES "\"$chronyd_features $common_features\""
 echo "Features : $chronyd_features $chronyc_features $common_features"
 
 if [ -f version.txt ]; then
-  add_def CHRONY_VERSION "\"`cat version.txt`\""
+  CHRONY_VERSION="`cat version.txt`"
 else
-  add_def CHRONY_VERSION "\"DEVELOPMENT\""
+  CHRONY_VERSION="DEVELOPMENT"
 fi
 
+add_def CHRONY_VERSION "\"${CHRONY_VERSION}\""
+
 for f in Makefile chrony.conf.5 chrony.texi chronyc.1 chronyd.8
 do
   echo Creating $f
@@ -838,7 +840,8 @@ do
           s%@CHRONYSOCKDIR@%${CHRONYSOCKDIR}%;\
           s%@CHRONYVARDIR@%${CHRONYVARDIR}%;\
           s%@DEFAULT_HWCLOCK_FILE@%${default_hwclockfile}%;\
-          s%@DEFAULT_USER@%${default_user}%;"\
+          s%@DEFAULT_USER@%${default_user}%;\
+          s%@CHRONY_VERSION@%${CHRONY_VERSION}%;" \
           < ${f}.in > $f
 done