diff options
Diffstat (limited to 'man/help2man')
-rwxr-xr-x | man/help2man | 33 |
1 files changed, 18 insertions, 15 deletions
diff --git a/man/help2man b/man/help2man index ff1013a..834b5ee 100755 --- a/man/help2man +++ b/man/help2man @@ -1,8 +1,7 @@ #!/usr/bin/perl -w # Generate a short man page from --help and --version output. -# Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2009, 2010, -# 2011 Free Software Foundation, Inc. +# Copyright (C) 1997-2005, 2009-2011, 2013 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 @@ -28,7 +27,7 @@ use Text::Tabs qw(expand); use POSIX qw(strftime setlocale LC_ALL); my $this_program = 'help2man'; -my $this_version = '1.39.2'; +my $this_version = '1.40.4'; sub _ { $_[0] } sub configure_locale @@ -56,7 +55,7 @@ Written by Brendan O'Dea <bod@debian.org> EOT my $help_info = enc_user sprintf _(<<'EOT'), $this_program, $this_program; -`%s' generates a man page out of `--help' and `--version' output. +'%s' generates a man page out of '--help' and '--version' output. Usage: %s [OPTION]... EXECUTABLE @@ -65,16 +64,16 @@ Usage: %s [OPTION]... EXECUTABLE -m, --manual=TEXT name of manual (User Commands, ...) -S, --source=TEXT source of program (FSF, Debian, ...) -L, --locale=STRING select locale (default "C") - -i, --include=FILE include material from `FILE' - -I, --opt-include=FILE include material from `FILE' if it exists - -o, --output=FILE send output to `FILE' + -i, --include=FILE include material from 'FILE' + -I, --opt-include=FILE include material from 'FILE' if it exists + -o, --output=FILE send output to 'FILE' -p, --info-page=TEXT name of Texinfo manual -N, --no-info suppress pointer to Texinfo manual - -l, --libtool exclude the `lt-' from the program name + -l, --libtool exclude the 'lt-' from the program name --help print this help, then exit --version print version number, then exit -EXECUTABLE should accept `--help' and `--version' options and produce output on +EXECUTABLE should accept '--help' and '--version' options and produce output on stdout although alternatives may be specified using: -h, --help-option=STRING help option string @@ -138,7 +137,7 @@ while (@opt_include) my ($inc, $required) = @{shift @opt_include}; next unless -f $inc or $required; - kark N_("%s: can't open `%s' (%s)"), $this_program, $inc, $! + kark N_("%s: can't open '%s' (%s)"), $this_program, $inc, $! unless open INC, $inc; my $key; @@ -199,7 +198,7 @@ while (@opt_include) close INC; - kark N_("%s: no valid information found in `%s'"), $this_program, $inc + kark N_("%s: no valid information found in '%s'"), $this_program, $inc unless $key; } @@ -215,7 +214,11 @@ sub get_option_value; my $help_text = get_option_value $ARGV[0], $help_option; $version_text ||= get_option_value $ARGV[0], $version_option; -my $date = strftime "%B %Y", localtime; +# Translators: the following message is a strftime(3) format string, which in +# the English version expands to the month as a word and the full year. It +# is used on the footer of the generated manual pages. If in doubt, you may +# just use %x as the value (which should be the full locale-specific date). +my $date = enc strftime _("%B %Y"), localtime; (my $program = $ARGV[0]) =~ s!.*/!!; my $package = $program; my $version; @@ -262,7 +265,7 @@ else $program =~ s!.*/!!; -# No info for `info' itself. +# No info for 'info' itself. $opt_no_info = 1 if $program eq 'info'; # Translators: "NAME", "SYNOPSIS" and other one or two word strings in all @@ -638,9 +641,9 @@ sub get_option_value unless ($value) { - my $err = N_("%s: can't get `%s' info from %s%s"); + my $err = N_("%s: can't get '%s' info from %s%s"); my $extra = $discard_stderr - ? "\n" . N_("Try `--no-discard-stderr' if option outputs to stderr") + ? "\n" . N_("Try '--no-discard-stderr' if option outputs to stderr") : ''; kark $err, $this_program, $opt, $prog, $extra; |