From: Harlan Stenn Date: Mon, 10 Feb 2014 07:35:55 +0000 (-0500) Subject: calc_tickadj/Makefile.am man/mdoc page build cleanup X-Git-Tag: NTP_4_2_7P421~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14d5fb92ae172725c23ca75c5df08c66521b2c1c;p=thirdparty%2Fntp.git calc_tickadj/Makefile.am man/mdoc page build cleanup bk: 52f8815bNiznCIOeClJwRV3hezdBFw --- diff --git a/ChangeLog b/ChangeLog index 79c48233d..bf3bd045a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,6 @@ * [Bug 898] More documentation fixes. * [Bug 2555] Autogen mdoc man pages all stamped with SunOS 5.10. +* calc_tickadj/Makefile.am man/mdoc page build cleanup. (4.2.7p420) 2014/02/09 Released by Harlan Stenn * [Bug 492] Clearly document ntpdate's pending deprecation. * [Bug 1186] ntpd fails with link local IPv6 addresses. diff --git a/scripts/calc_tickadj/Makefile.am b/scripts/calc_tickadj/Makefile.am index f94908bb1..e0abdd7d2 100644 --- a/scripts/calc_tickadj/Makefile.am +++ b/scripts/calc_tickadj/Makefile.am @@ -2,6 +2,15 @@ NULL= run_ag= cd $(srcdir) && env PATH="$(abs_builddir):$(PATH)" \ autogen -L ../../sntp/include -L ../../sntp/ag-tpl \ --writable +std_def_list = \ + $(top_srcdir)/sntp/include/debug-opt.def \ + $(top_srcdir)/sntp/include/autogen-version.def \ + $(top_srcdir)/sntp/include/copyright.def \ + $(top_srcdir)/sntp/include/homerc.def \ + $(top_srcdir)/sntp/include/ntp.lic \ + $(top_srcdir)/sntp/include/version.def \ + $(NULL) + bin_SCRIPTS= $(CALC_TICKADJ_DB) libexec_SCRIPTS= $(CALC_TICKADJ_DL) @@ -40,6 +49,8 @@ EXTRA_DIST = \ noinst_DATA = \ calc_tickadj.1calc_tickadjman \ calc_tickadj.1calc_tickadjmdoc \ + calc_tickadj.man.in \ + calc_tickadj.mdoc.in \ calc_tickadj.texi \ calc_tickadj.html \ calc_tickadj-opts.def \ diff --git a/scripts/calc_tickadj/calc_tickadj.1calc_tickadjman b/scripts/calc_tickadj/calc_tickadj.1calc_tickadjman index 613624623..5f5b15df6 100644 --- a/scripts/calc_tickadj/calc_tickadj.1calc_tickadjman +++ b/scripts/calc_tickadj/calc_tickadj.1calc_tickadjman @@ -10,11 +10,11 @@ .ds B-Font B .ds I-Font I .ds R-Font R -.TH calc_tickadj 1calc_tickadjman "27 Jan 2014" "ntp (4.2.7p411)" "User Commands" +.TH calc_tickadj 1calc_tickadjman "10 Feb 2014" "ntp (4.2.7p420)" "User Commands" .\" -.\" EDIT THIS FILE WITH CAUTION (in-mem file) +.\" EDIT THIS FILE WITH CAUTION (/tmp/.ag-Q0aynb/ag-30aOmb) .\" -.\" It has been AutoGen-ed January 27, 2014 at 09:00:38 AM by AutoGen 5.18.3pre11 +.\" It has been AutoGen-ed February 10, 2014 at 01:58:18 AM by AutoGen 5.18.3pre11 .\" From the definitions calc_tickadj-opts.def .\" and the template file agman-cmd.tpl .SH NAME @@ -90,6 +90,35 @@ Output version of program and exit. The default mode is `v', a simple version. The `c' mode will print copyright information and `n' will print the full copyright notice. .PP +.TH calc_tickadj 1calc_tickadjman "10 Feb 2014" "ntp (4.2.7p420)" "User Commands" +.\" +.\" EDIT THIS FILE WITH CAUTION (/tmp/.ag-Q0aynb/ag-30aOmb) +.\" +.\" It has been AutoGen-ed February 10, 2014 at 01:58:18 AM by AutoGen 5.18.3pre11 +.\" From the definitions calc_tickadj-opts.def +.\" and the template file agman-cmd.tpl +.SH NAME +\f\*[B-Font]calc_tickadj\fP calc_tickadj +\- Calculates optimal value for tick given ntp drift file. +cvt_prog='/usr/local/gnu/share/autogen/texi2man' +cvt_prog=`cd \`dirname "$cvt_prog"\` >/dev/null && pwd + `/`basename "$cvt_prog"` +cd $tmp_dir +test \-x "$cvt_prog" || die "'$cvt_prog' is not executable" +{ + list='synopsis description options option-presets' + for f in $list ; do cat $f ; echo ; done + rm \-f $list name + list='implementation-notes environment files examples exit-status errors + compatibility see-also conforming-to history authors copyright bugs + notes' + for f in $list ; do cat $f ; echo ; done > .end-doc + rm \-f $list + list=`ls \-1 *`' .end-doc' + for f in $list ; do cat $f ; echo ; done + rm \-f $list +} 1>.doc 2>/dev/null +/opt/csw/bin/ggrep \-E \-v '^[ ]*$' .doc | $cvt_prog .SH "EXIT STATUS" One of the following exit values will be returned: .TP diff --git a/scripts/calc_tickadj/calc_tickadj.1calc_tickadjmdoc b/scripts/calc_tickadj/calc_tickadj.1calc_tickadjmdoc index e9c387b33..819bf4cb7 100644 --- a/scripts/calc_tickadj/calc_tickadj.1calc_tickadjmdoc +++ b/scripts/calc_tickadj/calc_tickadj.1calc_tickadjmdoc @@ -1,9 +1,9 @@ -.Dd January 27 2014 +.Dd February 10 2014 .Dt CALC_TICKADJ 1calc_tickadjmdoc User Commands -.Os FreeBSD 6.4-STABLE +.Os .\" EDIT THIS FILE WITH CAUTION (calc_tickadj-opts.mdoc) .\" -.\" It has been AutoGen-ed January 27, 2014 at 09:00:40 AM by AutoGen 5.18.3pre11 +.\" It has been AutoGen-ed February 10, 2014 at 01:58:22 AM by AutoGen 5.18.3pre11 .\" From the definitions calc_tickadj-opts.def .\" and the template file agmdoc-cmd.tpl .Sh NAME @@ -68,6 +68,25 @@ Output version of program and exit. The default mode is `v', a simple version. The `c' mode will print copyright information and `n' will print the full copyright notice. .El +cvt_prog='/usr/local/gnu/share/autogen/texi2mdoc' +cvt_prog=`cd \`dirname "$cvt_prog"\` >/dev/null && pwd + `/`basename "$cvt_prog"` +cd $tmp_dir +test \-x "$cvt_prog" || die "'$cvt_prog' is not executable" +{ + list='synopsis description options option\-presets' + for f in $list ; do cat $f ; echo ; done + rm \-f $list name + list='implementation\-notes environment files examples exit\-status errors + compatibility see\-also conforming\-to history authors copyright bugs + notes' + for f in $list ; do cat $f ; echo ; done > .end\-doc + rm \-f $list + list=`ls \-1 *`' .end\-doc' + for f in $list ; do cat $f ; echo ; done + rm \-f $list +} 1>.doc 2>/dev/null +/opt/csw/bin/ggrep \-E \-v '^[ ]*$' .doc | $cvt_prog .Sh "EXIT STATUS" One of the following exit values will be returned: .Bl -tag diff --git a/scripts/calc_tickadj/calc_tickadj.man.in b/scripts/calc_tickadj/calc_tickadj.man.in index 5615dda93..5f5b15df6 100644 --- a/scripts/calc_tickadj/calc_tickadj.man.in +++ b/scripts/calc_tickadj/calc_tickadj.man.in @@ -10,11 +10,11 @@ .ds B-Font B .ds I-Font I .ds R-Font R -.TH calc_tickadj 1calc_tickadjman "16 Dec 2013" "" "User Commands" +.TH calc_tickadj 1calc_tickadjman "10 Feb 2014" "ntp (4.2.7p420)" "User Commands" .\" -.\" EDIT THIS FILE WITH CAUTION (in-mem file) +.\" EDIT THIS FILE WITH CAUTION (/tmp/.ag-Q0aynb/ag-30aOmb) .\" -.\" It has been AutoGen-ed December 16, 2013 at 09:07:36 PM by AutoGen 5.18.3pre7 +.\" It has been AutoGen-ed February 10, 2014 at 01:58:18 AM by AutoGen 5.18.3pre11 .\" From the definitions calc_tickadj-opts.def .\" and the template file agman-cmd.tpl .SH NAME @@ -84,7 +84,41 @@ Display usage information and exit. .TP .NOP \f\*[B-Font]\-\&!\f[], \f\*[B-Font]\-\-more-help\f[] Pass the extended usage information through a pager. +.TP +.NOP \f\*[B-Font]\-v\f[] [{\f\*[I-Font]v|c|n\f[] \f\*[B-Font]\-\-version\f[] [{\f\*[I-Font]v|c|n\f[]}]}] +Output version of program and exit. The default mode is `v', a simple +version. The `c' mode will print copyright information and `n' will +print the full copyright notice. .PP +.TH calc_tickadj 1calc_tickadjman "10 Feb 2014" "ntp (4.2.7p420)" "User Commands" +.\" +.\" EDIT THIS FILE WITH CAUTION (/tmp/.ag-Q0aynb/ag-30aOmb) +.\" +.\" It has been AutoGen-ed February 10, 2014 at 01:58:18 AM by AutoGen 5.18.3pre11 +.\" From the definitions calc_tickadj-opts.def +.\" and the template file agman-cmd.tpl +.SH NAME +\f\*[B-Font]calc_tickadj\fP calc_tickadj +\- Calculates optimal value for tick given ntp drift file. +cvt_prog='/usr/local/gnu/share/autogen/texi2man' +cvt_prog=`cd \`dirname "$cvt_prog"\` >/dev/null && pwd + `/`basename "$cvt_prog"` +cd $tmp_dir +test \-x "$cvt_prog" || die "'$cvt_prog' is not executable" +{ + list='synopsis description options option-presets' + for f in $list ; do cat $f ; echo ; done + rm \-f $list name + list='implementation-notes environment files examples exit-status errors + compatibility see-also conforming-to history authors copyright bugs + notes' + for f in $list ; do cat $f ; echo ; done > .end-doc + rm \-f $list + list=`ls \-1 *`' .end-doc' + for f in $list ; do cat $f ; echo ; done + rm \-f $list +} 1>.doc 2>/dev/null +/opt/csw/bin/ggrep \-E \-v '^[ ]*$' .doc | $cvt_prog .SH "EXIT STATUS" One of the following exit values will be returned: .TP diff --git a/scripts/calc_tickadj/calc_tickadj.mdoc.in b/scripts/calc_tickadj/calc_tickadj.mdoc.in index e9c387b33..819bf4cb7 100644 --- a/scripts/calc_tickadj/calc_tickadj.mdoc.in +++ b/scripts/calc_tickadj/calc_tickadj.mdoc.in @@ -1,9 +1,9 @@ -.Dd January 27 2014 +.Dd February 10 2014 .Dt CALC_TICKADJ 1calc_tickadjmdoc User Commands -.Os FreeBSD 6.4-STABLE +.Os .\" EDIT THIS FILE WITH CAUTION (calc_tickadj-opts.mdoc) .\" -.\" It has been AutoGen-ed January 27, 2014 at 09:00:40 AM by AutoGen 5.18.3pre11 +.\" It has been AutoGen-ed February 10, 2014 at 01:58:22 AM by AutoGen 5.18.3pre11 .\" From the definitions calc_tickadj-opts.def .\" and the template file agmdoc-cmd.tpl .Sh NAME @@ -68,6 +68,25 @@ Output version of program and exit. The default mode is `v', a simple version. The `c' mode will print copyright information and `n' will print the full copyright notice. .El +cvt_prog='/usr/local/gnu/share/autogen/texi2mdoc' +cvt_prog=`cd \`dirname "$cvt_prog"\` >/dev/null && pwd + `/`basename "$cvt_prog"` +cd $tmp_dir +test \-x "$cvt_prog" || die "'$cvt_prog' is not executable" +{ + list='synopsis description options option\-presets' + for f in $list ; do cat $f ; echo ; done + rm \-f $list name + list='implementation\-notes environment files examples exit\-status errors + compatibility see\-also conforming\-to history authors copyright bugs + notes' + for f in $list ; do cat $f ; echo ; done > .end\-doc + rm \-f $list + list=`ls \-1 *`' .end\-doc' + for f in $list ; do cat $f ; echo ; done + rm \-f $list +} 1>.doc 2>/dev/null +/opt/csw/bin/ggrep \-E \-v '^[ ]*$' .doc | $cvt_prog .Sh "EXIT STATUS" One of the following exit values will be returned: .Bl -tag