]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Create and use scripts/check--help when generating .texi files
authorHarlan Stenn <stenn@ntp.org>
Tue, 28 Dec 2010 08:16:01 +0000 (03:16 -0500)
committerHarlan Stenn <stenn@ntp.org>
Tue, 28 Dec 2010 08:16:01 +0000 (03:16 -0500)
bk: 4d199cc18CO1YiHnwEf3sCT5Vw4I7g

ChangeLog
ntpd/Makefile.am
ntpdc/Makefile.am
ntpq/Makefile.am
ntpsnmpd/Makefile.am
scripts/Makefile.am
scripts/check--help [new file with mode: 0755]
sntp/Makefile.am
util/Makefile.am

index 9edc68e38991b7a0343487241dd54ef82fb60fe2..143e78c55fa1df48893b285e0eb2903fa76ba40e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,8 @@
 ---
 
+* Create and use scripts/check--help when generating .texi files.
 * Update bk triggers for the bk-5 release.
+
 ---
 (4.2.6p3-RC12) 2010/12/25 Released by Harlan Stenn <stenn@ntp.org>
 
index 251836b3659f8d46c1bc2f164697c93c2fdbf06d..144371aaa8fa016dcaf8ea08fb0529f6fa296006 100644 (file)
@@ -248,6 +248,7 @@ $(srcdir)/ntpd-opts.menu: $(srcdir)/ntpd-opts.texi
        
 $(srcdir)/ntpd-opts.texi: $(srcdir)/ntpd-opts.def $(srcdir)/ntpdbase-opts.def $(std_def_list)
        $(run_ag) -Taginfo.tpl -DLEVEL=section ntpd-opts.def
+       $(top_srcdir)/scripts/check--help $@
 
 $(PROGRAMS): $(LDADD)
 
index 4c9a7f4c2c56558158db781d38694c528994c011..00aeffb8033dc5360d2a75bf61188acab3e9892e 100644 (file)
@@ -48,6 +48,7 @@ $(srcdir)/ntpdc-opts.menu: $(srcdir)/ntpdc-opts.texi
        
 $(srcdir)/ntpdc-opts.texi: $(srcdir)/ntpdc-opts.def $(std_def_list)
        $(run_ag) -Taginfo.tpl -DLEVEL=section ntpdc-opts.def
+       $(top_srcdir)/scripts/check--help $@
 
 ntpdc_SOURCES = ntpdc.c ntpdc_ops.c ntpdc-opts.c ntpdc-opts.h
 
index 5d259b9a83335e8be66cf749881bb5be0b02b6ff..735880bbbf077624fa392d307ff159ee4a72a6a3 100644 (file)
@@ -49,6 +49,7 @@ $(srcdir)/ntpq-opts.menu: $(srcdir)/ntpq-opts.texi
        
 $(srcdir)/ntpq-opts.texi: $(srcdir)/ntpq-opts.def $(std_def_list)
        $(run_ag) -Taginfo.tpl -DLEVEL=section ntpq-opts.def
+       $(top_srcdir)/scripts/check--help $@
 
 $(PROGRAMS): $(LDADD)
 
index 80a54873fad434733c6c212f19a8364d04b915e6..168de27873100ab67394f978e0aab5073542038a 100644 (file)
@@ -48,6 +48,7 @@ $(srcdir)/ntpsnmpd-opts.menu: $(srcdir)/ntpsnmpd-opts.texi
        
 $(srcdir)/ntpsnmpd-opts.texi: $(srcdir)/ntpsnmpd-opts.def $(std_def_list)
        $(run_ag) -Taginfo.tpl -DLEVEL=section ntpsnmpd-opts.def
+       $(top_srcdir)/scripts/check--help $@
 
 include $(top_srcdir)/bincheck.mf
 include $(top_srcdir)/depsver.mf
index 0246f2a7762b9834b1a4a85acef1e9eec381163c..afcfa77a40572385360698a2bbeb91159071c7ed 100644 (file)
@@ -8,6 +8,7 @@ endif
 
 noinst_SCRIPTS =               \
        calc_tickadj            \
+       check--help             \
        checktime               \
        freq_adj                \
        html2man                \
diff --git a/scripts/check--help b/scripts/check--help
new file mode 100755 (executable)
index 0000000..b17da05
--- /dev/null
@@ -0,0 +1,22 @@
+#! /bin/sh
+
+# Look at the file specified in $1 to see if it contains 'no --help'.
+# If it does:
+# - Squawk
+# - rename the file to ($1)-
+# - exit with a non-zero status.
+# otherwise:
+# - exit with a 0 status.
+
+if ! test -f $1
+then
+       echo "$0: $1 is not a regular file!" 2>&3
+       exit 1
+fi
+
+if grep -q 'no --help' $1
+then
+       echo "$0: $1 contains 'no --help'!" 2>&3
+       mv ${1} ${1}-
+       exit 1
+fi
index 40ca5ac8b8e1cf58174dbdb099b78f01c9eab6d5..f6d9f77c1e108e81e16aa66a52b962e458b8b394 100644 (file)
@@ -178,6 +178,7 @@ $(srcdir)/sntp-opts.menu: $(srcdir)/sntp-opts.texi
        
 $(srcdir)/sntp-opts.texi: $(srcdir)/sntp-opts.def $(srcdir)/version.def $(srcdir)/../include/copyright.def
        $(run_ag) -Taginfo.tpl -DLEVEL=section sntp-opts.def
+       $(top_srcdir)/scripts/check--help $@
 
 $(srcdir)/sntp.html: $(srcdir)/sntp-opts.menu $(srcdir)/sntp-opts.texi $(srcdir)/sntp.texi $(srcdir)/version.texi
        cd $(srcdir) && ( makeinfo --force --html --no-split -o sntp.html sntp.texi || true )
index fff3303298fff148e019ed29719c3d780b7b1d13..c5d5d66c4b0dd728370318f6240b22fead843a6e 100644 (file)
@@ -52,6 +52,7 @@ $(srcdir)/ntp-keygen-opts.menu: $(srcdir)/ntp-keygen-opts.texi
        
 $(srcdir)/ntp-keygen-opts.texi: $(srcdir)/ntp-keygen-opts.def $(std_def_list)
        $(run_ag) -Taginfo.tpl -DLEVEL=section ntp-keygen-opts.def
+       $(top_srcdir)/scripts/check--help $@
 
 
 jitter_SOURCES=        jitter.c jitter.h