@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
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
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