Generate version and date in man pages

This commit is contained in:
Miroslav Lichvar 2011-06-24 12:30:48 +02:00
parent 40d33cc64d
commit 1cb8167be0
5 changed files with 14 additions and 12 deletions

View file

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

View 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

View file

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

View file

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

View file

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