Commit 32a1dfbeaaf463fe32c2b2556d56e2b875d1bbfe

Thomas de Grivel 2023-01-21T15:08:35

help2man-1.022

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
diff --git a/ChangeLog b/ChangeLog
index 325f806..6290456 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,16 @@
-Sun Apr 16 00:18:41 2000  Brendan O'Dea  <bod@diablo>
+Fri Jul  7 16:16:18 2000  Brendan O'Dea  <bod@compusol.com.au>
+
+	* README.sh: Add GNU prefix
+	* aclocal.m4: (add) autoconf support
+	* configure.in: Use AC_PROG_PERL from aclocal.m4 to find perl
+	  (checks for perl and perl5)
+
+	* help2man.PL: Add GNU prefix, bug reporting address
+	* help2man.aux: Remove ozemail URL
+	* help2man.texi: Add GNU prefix, bug reporting address. Remove
+	  ozemail URL
+
+Sun Apr 16 00:18:41 2000  Brendan O'Dea  <bod@compusol.com.au>
 
 	* Makefile.in: Add mkinstalldirs (as reqested by Dave Morrison,
 	  Patrick Tullmann and Mo DeJong)
diff --git a/NEWS b/NEWS
index 72448a8..4a150d7 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,14 @@
+Version 1.022		July 7, 2000
+
+ * help2man is now officially a GNU program.  Add bug reporting
+   address and `GNU' prefix.
+
+ * configure now checks for `perl5' as well as `perl'.
+
+Version 1.021		April 16, 2000
+
+ * Create directories if required (Makefile).
+
 Version 1.020		December 30, 1999
 
  * Remove directory from command name(s) in synopsis.
diff --git a/README b/README
index f073364..89c597f 100644
--- a/README
+++ b/README
@@ -1,16 +1,16 @@
-                          README for help2man
-                             version 1.021
-                             April 16, 2000
+                        README for GNU help2man
+                             version 1.022
+                             July  7, 2000
 
 help2man is a script to create simple man pages from the --help and
 --version output of programs.
 
-  http://www.ozemail.com.au/~bod/help2man.tar.gz
-  ftp://ftp.gnu.org/gnu/help2man/help2man-1.021.tar.gz
+  http://www.gnu.org/software/help2man/
+  ftp://ftp.gnu.org/gnu/help2man/help2man-1.022.tar.gz
 
 Since most GNU documentation is now in info format, this provides a
 way to generate a placeholder man page pointing to that resource while
 still providing some useful information.
 
 -- 
-Brendan O'Dea <bod@compusol.com.au>      http://www.ozemail.com.au/~bod/
+Brendan O'Dea <bod@compusol.com.au>
diff --git a/THANKS b/THANKS
index 4aca99e..7389c3a 100644
--- a/THANKS
+++ b/THANKS
@@ -13,3 +13,4 @@ Fran
 Andreas Schwab			<schwab@ls5.informatik.uni-dortmund.de>
 Patrick Tullmann		<tullmann@cs.utah.edu>
 Okuji Yoshinori			<okuji@kuicr.kyoto-u.ac.jp>
+suzukis				<suzukis@cmpt.phys.tohoku.ac.jp>
diff --git a/aclocal.m4 b/aclocal.m4
new file mode 100644
index 0000000..bd34d99
--- /dev/null
+++ b/aclocal.m4
@@ -0,0 +1,36 @@
+dnl Local macros
+dnl $Id: aclocal.m4,v 1.1 2000/07/07 05:41:47 bod Exp $
+
+changequote()
+define(RIGHT_BRACKET, ])
+changequote([, ])
+
+dnl AC_PROG_PERL([MIN-VERSION])
+AC_DEFUN(AC_PROG_PERL,
+[# find perl binary
+AC_MSG_CHECKING([for perl])
+AC_CACHE_VAL(ac_cv_prog_PERL,
+[ifelse([$1],,,[echo "configure:__oline__: ...version $1 required" >&AC_FD_CC
+  ])# allow user to override
+  if test -n "$PERL"; then
+    ac_try="$PERL"
+  else
+    ac_try="perl perl5"
+  fi
+
+  for ac_prog in $ac_try; do
+    echo "configure:__oline__: trying $ac_prog" >&AC_FD_CC
+    if ($ac_prog -e 'printf "found version %g\n",$]RIGHT_BRACKET[dnl
+ifelse([$1],,,[;exit($]RIGHT_BRACKET[<$1)])') 1>&AC_FD_CC 2>&1; then
+      ac_cv_prog_PERL=$ac_prog
+      break
+    fi
+  done])dnl
+PERL="$ac_cv_prog_PERL"
+if test -n "$PERL"; then
+  AC_MSG_RESULT($PERL)
+else
+  AC_MSG_RESULT(no)
+fi
+AC_SUBST(PERL)dnl
+])dnl
diff --git a/configure b/configure
index cdbebe5..ba94ed2 100755
--- a/configure
+++ b/configure
@@ -521,49 +521,36 @@ else
 fi
 
 
-# Extract the first word of "perl", so it can be a program name with args.
-set dummy perl; ac_word=$2
-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:528: checking for $ac_word" >&5
-if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
+# find perl binary
+echo $ac_n "checking for perl""... $ac_c" 1>&6
+echo "configure:527: checking for perl" >&5
+if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
-  case "$PERL" in
-  /*)
-  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
-  ;;
-  ?:/*)			 
-  ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
-  ;;
-  *)
-  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
-  ac_dummy="$PATH"
-  for ac_dir in $ac_dummy; do 
-    test -z "$ac_dir" && ac_dir=.
-    if test -f $ac_dir/$ac_word; then
-      ac_cv_path_PERL="$ac_dir/$ac_word"
+  echo "configure:531: ...version 5.004 required" >&5
+  # allow user to override
+  if test -n "$PERL"; then
+    ac_try="$PERL"
+  else
+    ac_try="perl perl5"
+  fi
+
+  for ac_prog in $ac_try; do
+    echo "configure:540: trying $ac_prog" >&5
+    if ($ac_prog -e 'printf "found version %g\n",$];exit($]<5.004)') 1>&5 2>&1; then
+      ac_cv_prog_PERL=$ac_prog
       break
     fi
   done
-  IFS="$ac_save_ifs"
-  ;;
-esac
 fi
-PERL="$ac_cv_path_PERL"
+PERL="$ac_cv_prog_PERL"
 if test -n "$PERL"; then
   echo "$ac_t""$PERL" 1>&6
 else
   echo "$ac_t""no" 1>&6
 fi
 
-if test -z "$PERL"; then
-  { echo "configure: error: perl not found" 1>&2; exit 1; }
-fi
-echo $ac_n "checking perl version""... $ac_c" 1>&6
-echo "configure:564: checking perl version" >&5
-if $PERL -e 'printf "%g\n", $]; exit($] >= 5.004);'; then
-  { echo "configure: error: perl 5.004 required" 1>&2; exit 1; }
-fi
+test -z "$PERL" && { echo "configure: error: perl 5.004 required" 1>&2; exit 1; }
 ac_aux_dir=
 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
   if test -f $ac_dir/install-sh; then
@@ -595,7 +582,7 @@ ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 # ./install, which can be erroneously created by make from ./install.sh.
 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
-echo "configure:599: checking for a BSD compatible install" >&5
+echo "configure:586: checking for a BSD compatible install" >&5
 if test -z "$INSTALL"; then
 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
@@ -650,7 +637,7 @@ test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 # Extract the first word of "makeinfo", so it can be a program name with args.
 set dummy makeinfo; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:654: checking for $ac_word" >&5
+echo "configure:641: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_path_MAKEINFO'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -685,7 +672,7 @@ fi
 # Extract the first word of "install-info", so it can be a program name with args.
 set dummy install-info; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:689: checking for $ac_word" >&5
+echo "configure:676: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_path_INSTALL_INFO'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
diff --git a/configure.in b/configure.in
index afe0db9..3b01831 100644
--- a/configure.in
+++ b/configure.in
@@ -1,15 +1,9 @@
 dnl Process this file with autoconf to produce a configure script.
-dnl $Id: configure.in,v 1.2 1999/11/01 10:50:04 bod Exp $
+dnl $Id: configure.in,v 1.3 2000/07/07 06:11:29 bod Exp $
 
 AC_INIT(help2man.PL)
-AC_PATH_PROG(PERL, perl)
-if test -z "$PERL"; then
-  AC_MSG_ERROR([perl not found])
-fi
-AC_MSG_CHECKING(perl version)
-if $PERL -e 'printf "%g\n", $]; exit($] >= 5.004);'; then
-  AC_MSG_ERROR([perl 5.004 required])
-fi
+AC_PROG_PERL(5.004)
+test -z "$PERL" && AC_MSG_ERROR([perl 5.004 required])
 AC_PROG_INSTALL
 AC_PATH_PROG(MAKEINFO, makeinfo)
 AC_PATH_PROG(INSTALL_INFO, install-info)
diff --git a/help2man.PL b/help2man.PL
index 91bb28d..37238ef 100755
--- a/help2man.PL
+++ b/help2man.PL
@@ -16,7 +16,7 @@ use Config;
 use Getopt::Long;
 
 my ($program, $version)
-    = (qw$Id: help2man.PL,v 1.21 2000/04/15 14:18:41 bod Exp $)[1..2];
+    = (qw$Id: help2man.PL,v 1.22 2000/07/07 06:16:18 bod Exp $)[1..2];
 
 $program =~ s/\.PL(,v)?$//;
 $version =~ s/\.(\d+)/sprintf "-%03d", $1/e;
@@ -62,7 +62,7 @@ eval 'exec $Config{perlpath} -wS \$0 \${1+"\$@"}'
 print OUT <<'!NO!SUBS!';
 
 # Generate a short man page from --help and --version output.
-# Copyright © 1997, 98, 99 Free Software Foundation, Inc.
+# Copyright © 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -98,9 +98,9 @@ my \$this_version = '$version';
 # No substitutions for the remainder of the script:
 print OUT <<'!NO!SUBS!';
 my $version_info = <<EOT;
-$this_program $this_version
+GNU $this_program $this_version
 
-Copyright (C) 1997, 98, 99 Free Software Foundation, Inc.
+Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
 This is free software; see the source for copying conditions.  There is NO
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
@@ -122,6 +122,8 @@ Usage: $this_program [OPTION]... EXECUTABLE
      --version           print version number, then exit
 
 EXECUTABLE should accept `--help' and `--version' options.
+
+Report bugs to <bug-help2man\@gnu.org>.
 EOT
 
 my $section = 1;
diff --git a/help2man.aux b/help2man.aux
index c2d319f..b4f5dee 100644
--- a/help2man.aux
+++ b/help2man.aux
@@ -1,6 +1,6 @@
 Include file for help2man man page
 
-$Id: help2man.aux,v 1.4 1999/10/27 06:02:00 bod Exp $
+$Id: help2man.aux,v 1.5 2000/07/07 06:13:21 bod Exp $
 
 [name]
 help2man \- generate a simple manual page
@@ -68,4 +68,3 @@ the standard sections given above, or included at
 The latest version of this distribution is available on-line from:
 
     ftp://ftp.gnu.org/gnu/help2man/
-    http://www.ozemail.com.au/~bod/help2man.tar.gz
diff --git a/help2man.info b/help2man.info
index 5712578..e173232 100644
--- a/help2man.info
+++ b/help2man.info
@@ -6,10 +6,10 @@ START-INFO-DIR-ENTRY
 * help2man: (help2man).      Automatic manual page generation.
 END-INFO-DIR-ENTRY
 
-   This file documents the `help2man' command which produces simple
+   This file documents the GNU `help2man' command which produces simple
 manual pages from the `--help' and `--version' output of other commands.
 
-   Copyright (C) 1999 Free Software Foundation, Inc.
+   Copyright (C) 1999, 2000 Free Software Foundation, Inc.
 
    Permission is granted to make and distribute verbatim copies of this
 manual provided the copyright notice and this permission notice are
@@ -40,13 +40,14 @@ File: help2man.info,  Node: Top,  Next: Overview,  Up: (dir)
 * Invoking help2man::           How to run `help2man'.
 * Including text::              Including additional text in the output.
 * Makefile usage::              Using `help2man' with `make'.
-* Obtaining help2man::          How to obtain `help2man'.
+* Reports::                     Reporting bugs or suggestions.
+* Availability::                Obtaining `help2man'.
 
 
 File: help2man.info,  Node: Overview,  Next: Invoking help2man,  Prev: Top,  Up: Top
 
-Overview
-********
+Overview of `help2man'
+**********************
 
    `help2man' is a tool for automatically generating simple manual
 pages from program output.
@@ -65,8 +66,8 @@ something which resembles a manual page.
 
 File: help2man.info,  Node: Invoking help2man,  Next: Including text,  Prev: Overview,  Up: Top
 
-Invoking help2man
-*****************
+How to Run `help2man'.
+**********************
 
    The format for running the `help2man' program is:
 
@@ -115,8 +116,8 @@ Invoking help2man
 
 File: help2man.info,  Node: Including text,  Next: Makefile usage,  Prev: Invoking help2man,  Up: Top
 
-Including Text
-**************
+Including Additional Text in the Output
+***************************************
 
    Additional static text may be included in the generated manual page
 by using the `--include' and `--opt-include' options (*Note Invoking
@@ -162,10 +163,10 @@ the standard sections given above, or included at *other* (above) in
 the order they were encountered in the include file.
 
 
-File: help2man.info,  Node: Makefile usage,  Next: Obtaining help2man,  Prev: Including text,  Up: Top
+File: help2man.info,  Node: Makefile usage,  Next: Reports,  Prev: Including text,  Up: Top
 
-Makefile Usage
-**************
+Using `help2man' With `make'
+****************************
 
    A suggested use of `help2man' in Makefiles is to have the manual
 page depend not on the binary, but on the source file(s) in which the
@@ -191,25 +192,33 @@ included in the distribution without requiring the end-user to have
    for `autoconf' alone.
 
 
-File: help2man.info,  Node: Obtaining help2man,  Prev: Makefile usage,  Up: Top
+File: help2man.info,  Node: Reports,  Next: Availability,  Prev: Makefile usage,  Up: Top
 
-Obtaining help2man
-******************
+Reporting Bugs or Suggestions
+*****************************
 
-   The latest version of this distribution is available on-line from
-either:
+   If you find problems or have suggestions about this program or
+manual, please report them to <bug-help2man@gnu.org>.
+
+
+File: help2man.info,  Node: Availability,  Prev: Reports,  Up: Top
+
+Obtaining `help2man'
+********************
+
+   The latest version of this distribution is available on-line from:
 
      `ftp://ftp.gnu.org/gnu/help2man/'
-     `http://www.ozemail.com.au/~bod/help2man.tar.gz'
 
 
 
 Tag Table:
-Node: Top1090
-Node: Overview1595
-Node: Invoking help2man2273
-Node: Including text3467
-Node: Makefile usage4891
-Node: Obtaining help2man5792
+Node: Top1100
+Node: Overview1664
+Node: Invoking help2man2370
+Node: Including text3574
+Node: Makefile usage5048
+Node: Reports5966
+Node: Availability6241
 
 End Tag Table
diff --git a/help2man.texi b/help2man.texi
index 71046a1..4b745be 100644
--- a/help2man.texi
+++ b/help2man.texi
@@ -5,7 +5,7 @@
 @setchapternewpage odd
 @finalout
 @c %**end of header
-@c $Id: help2man.texi,v 1.3 1999/12/29 14:29:12 bod Exp $
+@c $Id: help2man.texi,v 1.4 2000/07/07 06:15:03 bod Exp $
 
 @dircategory GNU admin
 @direntry
@@ -13,11 +13,11 @@
 @end direntry
 
 @ifinfo
-This file documents the @code{help2man} command which produces simple
-manual pages from the @samp{--help} and @samp{--version} output of other
-commands.
+This file documents the GNU @code{help2man} command which produces
+simple manual pages from the @samp{--help} and @samp{--version} output
+of other commands.
 
-Copyright (C) 1999 Free Software Foundation, Inc.
+Copyright (C) 1999, 2000 Free Software Foundation, Inc.
 
 Permission is granted to make and distribute verbatim copies of
 this manual provided the copyright notice and this permission notice
@@ -48,7 +48,7 @@ by the Foundation.
 
 @page
 @vskip 0pt plus 1filll
-Copyright @copyright{} 1999 Free Software Foundation, Inc.
+Copyright @copyright{} 1999, 2000 Free Software Foundation, Inc.
 
 Permission is granted to make and distribute verbatim copies of
 this manual provided the copyright notice and this permission notice
@@ -77,12 +77,13 @@ and @samp{--version} output of other commands.
 * Invoking help2man::           How to run @code{help2man}.
 * Including text::              Including additional text in the output.
 * Makefile usage::              Using @code{help2man} with @code{make}.
-* Obtaining help2man::          How to obtain @code{help2man}.
+* Reports::                     Reporting bugs or suggestions.
+* Availability::                Obtaining @code{help2man}.
 @end menu
 @end ifinfo
 
 @node Overview
-@chapter Overview
+@chapter Overview of @code{help2man}
 
 @code{help2man} is a tool for automatically generating simple manual
 pages from program output.
@@ -100,7 +101,7 @@ Given a program which produces reasonably standard @samp{--help} and
 into something which resembles a manual page.
 
 @node Invoking help2man
-@chapter Invoking help2man
+@chapter How to Run @code{help2man}.
 
 The format for running the @code{help2man} program is:
 
@@ -151,7 +152,7 @@ Show help or version information.
 @end table
 
 @node Including text
-@chapter Including Text
+@chapter Including Additional Text in the Output
 
 Additional static text may be included in the generated manual page by
 using the @samp{--include} and @samp{--opt-include} options
@@ -203,7 +204,7 @@ the standard sections given above, or included at @emph{other} (above)
 in the order they were encountered in the include file.
 
 @node Makefile usage
-@chapter Makefile Usage
+@chapter Using @code{help2man} With @code{make}
 
 A suggested use of @code{help2man} in Makefiles is to have the manual
 page depend not on the binary, but on the source file(s) in which the
@@ -237,15 +238,19 @@ AC_PATH_PROG(HELP2MAN, help2man, false // No help2man //)
 
 for @code{autoconf} alone.
 
-@node Obtaining help2man
-@chapter Obtaining help2man
+@node Reports
+@chapter Reporting Bugs or Suggestions
 
-The latest version of this distribution is available on-line from
-either:
+If you find problems or have suggestions about this program or
+manual, please report them to @email{bug-help2man@@gnu.org}.
+
+@node Availability
+@chapter Obtaining @code{help2man}
+
+The latest version of this distribution is available on-line from:
 
 @example
 @url{ftp://ftp.gnu.org/gnu/help2man/}
-@url{http://www.ozemail.com.au/~bod/help2man.tar.gz}
 @end example
 
 @contents