]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
Generate version and date in man pages
authorMiroslav Lichvar <mlichvar@redhat.com>
Fri, 24 Jun 2011 10:30:48 +0000 (12:30 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Fri, 24 Jun 2011 10:30:48 +0000 (12:30 +0200)
chrony.1
chrony.conf.5
chronyc.1
chronyd.8
make_release

index 28d3252dba09441b2ae0f139c63a0e67c64f61a7..b55fe04f1739b7cdff84273bd1bcbcdc0096edff 100644 (file)
--- a/chrony.1
+++ b/chrony.1
@@ -1,4 +1,4 @@
-.TH CHRONY 1 "December 04, 2009" chrony "User's Manual"
+.TH CHRONY 1 "@MAN_DATE@" "chrony @VERSION@" "User's Manual"
 .SH NAME
 chrony \- programs for keeping computer clocks accurate
 
index 470cfccfcc0efccb440e7b2f11d8d4d4f9540879..af9c928513f86fa7618d875549b9df1e02a28c38 100644 (file)
@@ -1,4 +1,4 @@
-.TH chrony.conf 5 "December 04, 2009" chrony "Configuration Files"
+.TH chrony.conf 5 "@MAN_DATE@" "chrony @VERSION@" "Configuration Files"
 .SH NAME
 chrony.conf \- chronyd configuration file
 
index e7ce5191f9c541063074adeb6197b4074ae4935b..7c0dda400a54c5eeedc188fd851ce39416ec6dfb 100644 (file)
--- a/chronyc.1
+++ b/chronyc.1
@@ -1,4 +1,4 @@
-.TH CHRONYC 1 "May 02, 2011" chrony "User's Manual"
+.TH CHRONYC 1 "@MAN_DATE@" "chrony @VERSION@" "User's Manual"
 .SH NAME
 chronyc \- command-line interface for chronyd
 
@@ -46,10 +46,6 @@ will be interpreted as a whole command.
 specify command.  If no command is given, chronyc will read commands
 interactively.
 
-
-.SH VERSION
-1.25
-
 .SH BUGS
 To report bugs, please visit \fIhttp://chrony.tuxfamily.org\fR
 
@@ -67,4 +63,3 @@ Man Pages Project".  Please see \fIhttp://www.netmeister.org/misc/m2p2/index.htm
 for details.
 
 The complete chrony documentation is supplied in texinfo format.
-
index 60bfc1aa173c45393dc021764bfaa284e3279ab6..e271d4ccbed5fbc9c572110558545b6197b641c9 100644 (file)
--- a/chronyd.8
+++ b/chronyd.8
@@ -1,4 +1,4 @@
-.TH CHRONYD 8 "May 02, 2011" chrony "System Administration"
+.TH CHRONYD 8 "@MAN_DATE@" "chrony @VERSION@" "System Administration"
 .SH NAME
 chronyd \- chrony background daemon
 
@@ -108,9 +108,6 @@ Resolve hostnames only to IPv6 addresses.
 .SH FILES
 \fI/etc/chrony.conf\fR
 
-.SH VERSION
-Version 1.25
-
 .SH BUGS
 To report bugs, please visit \fIhttp://chrony.tuxfamily.org/\fR
 
index d0ce2741b8ce8899c965aa2c06ccdb554235bfa0..ed76adeadfc143a7f89db938d0c7bed71b300271 100755 (executable)
@@ -1,5 +1,8 @@
 #!/bin/sh
 
+LANG=C
+export LANG
+
 if [ $# -ne 1 ]; then
   echo "Usage : $0 <version>"
   exit 2
@@ -7,6 +10,7 @@ fi
 
 version=$1
 subdir=chrony-${version}
+mandate=$(date +'%B %Y')
 
 umask 022
 
@@ -30,6 +34,12 @@ echo $version > version.txt
 
 sed -e "s%@@VERSION@@%${version}%" < chrony.spec.sample > chrony.spec
 
+for m in chrony.1 chronyc.1 chrony.conf.5 chronyd.8; do
+  sed -e "s%@VERSION@%${version}%;s%@MAN_DATE@%${mandate}%" \
+    < $m > ${m}_
+  mv -f ${m}_ $m
+done
+
 makeinfo --no-headers --number-sections -o chrony.txt chrony.texi
 
 rm -f make_release chrony.spec.sample .gitignore