|
|
86775f |
From 1a2570d69c1c50e2dd0f619d3791b4c77d3d8d47 Mon Sep 17 00:00:00 2001
|
|
|
86775f |
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
|
|
|
86775f |
Date: Tue, 4 Mar 2014 15:20:47 +0100
|
|
|
86775f |
Subject: [PATCH] Append new-line to usage output
|
|
|
86775f |
MIME-Version: 1.0
|
|
|
86775f |
Content-Type: text/plain; charset=UTF-8
|
|
|
86775f |
Content-Transfer-Encoding: 8bit
|
|
|
86775f |
|
|
|
86775f |
This is bug in autogen, however regenerating sources would mean to
|
|
|
86775f |
unbundle libopts and fix autogen. So I corrected generated sources
|
|
|
86775f |
instead.
|
|
|
86775f |
|
|
|
86775f |
Take care about array length and substring offsets and values for
|
|
|
86775f |
gettext() coherency.
|
|
|
86775f |
|
|
|
86775f |
Signed-off-by: Petr Písař <ppisar@redhat.com>
|
|
|
86775f |
---
|
|
|
86775f |
src/shar-opts.c | 14 +++++++-------
|
|
|
86775f |
src/uudecode-opts.c | 14 +++++++-------
|
|
|
86775f |
src/uuencode-opts.c | 14 +++++++-------
|
|
|
86775f |
3 files changed, 21 insertions(+), 21 deletions(-)
|
|
|
86775f |
|
|
|
86775f |
diff --git a/src/shar-opts.c b/src/shar-opts.c
|
|
|
86775f |
index 1da4365..96223c6 100644
|
|
|
86775f |
--- a/src/shar-opts.c
|
|
|
86775f |
+++ b/src/shar-opts.c
|
|
|
86775f |
@@ -74,7 +74,7 @@ int optidx = 0;
|
|
|
86775f |
/*
|
|
|
86775f |
* shar option static const strings
|
|
|
86775f |
*/
|
|
|
86775f |
-static char const shar_opt_strs[10449] =
|
|
|
86775f |
+static char const shar_opt_strs[10451] =
|
|
|
86775f |
/* 0 */ "shar (GNU sharutils) 4.13.3\n"
|
|
|
86775f |
"Copyright (C) 1994-2013 Free Software Foundation, Inc., all rights reserved.\n"
|
|
|
86775f |
"This is free software. It is licensed for use, modification and\n"
|
|
|
86775f |
@@ -339,9 +339,9 @@ static char const shar_opt_strs[10449] =
|
|
|
86775f |
"Though this program supports 'uuencode'-d files, they are deprecated. If\n"
|
|
|
86775f |
"you are emailing files, please consider mime-encoded files. If you do\n"
|
|
|
86775f |
"'uuencode', base 64 is the preferred encoding method.\n\n"
|
|
|
86775f |
- "please send bug reports to: bug-gnu-utils@gnu.org\0"
|
|
|
86775f |
-/* 10319 */ "shar (GNU sharutils) - create a shell archive - Ver. 4.13.3\n"
|
|
|
86775f |
- "USAGE: shar [ -<flag> [<val>] | --<name>[{=| }<val>] ]... [file ...]";
|
|
|
86775f |
+ "please send bug reports to: bug-gnu-utils@gnu.org\n\0"
|
|
|
86775f |
+/* 10320 */ "shar (GNU sharutils) - create a shell archive - Ver. 4.13.3\n"
|
|
|
86775f |
+ "USAGE: shar [ -<flag> [<val>] | --<name>[{=| }<val>] ]... [file ...]\n";
|
|
|
86775f |
|
|
|
86775f |
/*
|
|
|
86775f |
* compression option description:
|
|
|
86775f |
@@ -1414,7 +1414,7 @@ static char const * const apzHomeList[2] = {
|
|
|
86775f |
|
|
|
86775f |
#define shar_full_usage (shar_opt_strs+4701)
|
|
|
86775f |
|
|
|
86775f |
-#define shar_short_usage (shar_opt_strs+10319)
|
|
|
86775f |
+#define shar_short_usage (shar_opt_strs+10320)
|
|
|
86775f |
|
|
|
86775f |
#endif /* not defined __doxygen__ */
|
|
|
86775f |
|
|
|
86775f |
@@ -2145,10 +2145,10 @@ arguments.\n\n\
|
|
|
86775f |
Though this program supports 'uuencode'-d files, they are deprecated. If\n\
|
|
|
86775f |
you are emailing files, please consider mime-encoded files. If you do\n\
|
|
|
86775f |
'uuencode', base 64 is the preferred encoding method.\n\n\
|
|
|
86775f |
-please send bug reports to: bug-gnu-utils@gnu.org"));
|
|
|
86775f |
+please send bug reports to: bug-gnu-utils@gnu.org\n"));
|
|
|
86775f |
/* short-usage */
|
|
|
86775f |
puts(_("shar (GNU sharutils) - create a shell archive - Ver. 4.13.3\n\
|
|
|
86775f |
-USAGE: shar [ -<flag> [<val>] | --<name>[{=| }<val>] ]... [file ...]"));
|
|
|
86775f |
+USAGE: shar [ -<flag> [<val>] | --<name>[{=| }<val>] ]... [file ...]\n"));
|
|
|
86775f |
/* explain */
|
|
|
86775f |
puts(_("If no 'file's are specified, the list of input files is read from a\n\
|
|
|
86775f |
standard input. Standard input must not be a terminal"));
|
|
|
86775f |
diff --git a/src/uudecode-opts.c b/src/uudecode-opts.c
|
|
|
86775f |
index 33ebe2f..b4c6fd2 100644
|
|
|
86775f |
--- a/src/uudecode-opts.c
|
|
|
86775f |
+++ b/src/uudecode-opts.c
|
|
|
86775f |
@@ -72,7 +72,7 @@ extern FILE * option_usage_fp;
|
|
|
86775f |
/*
|
|
|
86775f |
* uudecode option static const strings
|
|
|
86775f |
*/
|
|
|
86775f |
-static char const uudecode_opt_strs[4552] =
|
|
|
86775f |
+static char const uudecode_opt_strs[4554] =
|
|
|
86775f |
/* 0 */ "uudecode (GNU sharutils) 4.13.3\n"
|
|
|
86775f |
"Copyright (C) 1994-2013 Free Software Foundation, Inc., all rights reserved.\n"
|
|
|
86775f |
"This is free software. It is licensed for use, modification and\n"
|
|
|
86775f |
@@ -159,9 +159,9 @@ static char const uudecode_opt_strs[4552] =
|
|
|
86775f |
"that starts with \"'begin'\" and proceeds until the end-of-encoding marker is\n"
|
|
|
86775f |
"found. The program determines from the header line of the encoded file\n"
|
|
|
86775f |
"which of the two supported encoding schemes was used.\n\n"
|
|
|
86775f |
- "please send bug reports to: bug-gnu-utils@gnu.org\0"
|
|
|
86775f |
-/* 4412 */ "uudecode (GNU sharutils) - decode an encoded file - Ver. 4.13.3\n"
|
|
|
86775f |
- "USAGE: uudecode [ -<flag> [<val>] | --<name>[{=| }<val>] ]... [ file ... ]";
|
|
|
86775f |
+ "please send bug reports to: bug-gnu-utils@gnu.org\n\0"
|
|
|
86775f |
+/* 4413 */ "uudecode (GNU sharutils) - decode an encoded file - Ver. 4.13.3\n"
|
|
|
86775f |
+ "USAGE: uudecode [ -<flag> [<val>] | --<name>[{=| }<val>] ]... [ file ... ]\n";
|
|
|
86775f |
|
|
|
86775f |
/*
|
|
|
86775f |
* output-file option description:
|
|
|
86775f |
@@ -345,7 +345,7 @@ static char const * const apzHomeList[2] = {
|
|
|
86775f |
|
|
|
86775f |
#define uudecode_full_usage (uudecode_opt_strs+2463)
|
|
|
86775f |
|
|
|
86775f |
-#define uudecode_short_usage (uudecode_opt_strs+4412)
|
|
|
86775f |
+#define uudecode_short_usage (uudecode_opt_strs+4413)
|
|
|
86775f |
|
|
|
86775f |
#endif /* not defined __doxygen__ */
|
|
|
86775f |
|
|
|
86775f |
@@ -720,10 +720,10 @@ be written to the same file as the previous output. Don't do that.\n\n\
|
|
|
86775f |
that starts with \"'begin'\" and proceeds until the end-of-encoding marker is\n\
|
|
|
86775f |
found. The program determines from the header line of the encoded file\n\
|
|
|
86775f |
which of the two supported encoding schemes was used.\n\n\
|
|
|
86775f |
-please send bug reports to: bug-gnu-utils@gnu.org"));
|
|
|
86775f |
+please send bug reports to: bug-gnu-utils@gnu.org\n"));
|
|
|
86775f |
/* short-usage */
|
|
|
86775f |
puts(_("uudecode (GNU sharutils) - decode an encoded file - Ver. 4.13.3\n\
|
|
|
86775f |
-USAGE: uudecode [ -<flag> [<val>] | --<name>[{=| }<val>] ]... [ file ... ]"));
|
|
|
86775f |
+USAGE: uudecode [ -<flag> [<val>] | --<name>[{=| }<val>] ]... [ file ... ]\n"));
|
|
|
86775f |
/* explain */
|
|
|
86775f |
puts(_("If no 'file'(s) are provided, then standard input is decoded"));
|
|
|
86775f |
/* detail */
|
|
|
86775f |
diff --git a/src/uuencode-opts.c b/src/uuencode-opts.c
|
|
|
86775f |
index 93c9570..eb791d5 100644
|
|
|
86775f |
--- a/src/uuencode-opts.c
|
|
|
86775f |
+++ b/src/uuencode-opts.c
|
|
|
86775f |
@@ -71,7 +71,7 @@ extern char const uu_base64[64];
|
|
|
86775f |
/*
|
|
|
86775f |
* uuencode option static const strings
|
|
|
86775f |
*/
|
|
|
86775f |
-static char const uuencode_opt_strs[4248] =
|
|
|
86775f |
+static char const uuencode_opt_strs[4250] =
|
|
|
86775f |
/* 0 */ "uuencode (GNU sharutils) 4.13.3\n"
|
|
|
86775f |
"Copyright (C) 1994-2013 Free Software Foundation, Inc., all rights reserved.\n"
|
|
|
86775f |
"This is free software. It is licensed for use, modification and\n"
|
|
|
86775f |
@@ -155,9 +155,9 @@ static char const uuencode_opt_strs[4248] =
|
|
|
86775f |
"'Note': 'uuencode' uses buffered input and assumes that it is not hand\n"
|
|
|
86775f |
"typed from a tty. The consequence is that at a tty, you may need to hit\n"
|
|
|
86775f |
"Ctl-D several times to terminate input.\n\n"
|
|
|
86775f |
- "please send bug reports to: bug-gnu-utils@gnu.org\0"
|
|
|
86775f |
-/* 4101 */ "uuencode (GNU sharutils) - encode a file into email friendly text - Ver. 4.13.3\n"
|
|
|
86775f |
- "USAGE: uuencode [ -<flag> | --<name> ]... [ in-file ] output-name";
|
|
|
86775f |
+ "please send bug reports to: bug-gnu-utils@gnu.org\n\0"
|
|
|
86775f |
+/* 4102 */ "uuencode (GNU sharutils) - encode a file into email friendly text - Ver. 4.13.3\n"
|
|
|
86775f |
+ "USAGE: uuencode [ -<flag> | --<name> ]... [ in-file ] output-name\n";
|
|
|
86775f |
|
|
|
86775f |
/*
|
|
|
86775f |
* base64 option description:
|
|
|
86775f |
@@ -340,7 +340,7 @@ static char const * const apzHomeList[2] = {
|
|
|
86775f |
|
|
|
86775f |
#define uuencode_full_usage (uuencode_opt_strs+2306)
|
|
|
86775f |
|
|
|
86775f |
-#define uuencode_short_usage (uuencode_opt_strs+4101)
|
|
|
86775f |
+#define uuencode_short_usage (uuencode_opt_strs+4102)
|
|
|
86775f |
|
|
|
86775f |
#endif /* not defined __doxygen__ */
|
|
|
86775f |
|
|
|
86775f |
@@ -695,10 +695,10 @@ standard out.\n\n\
|
|
|
86775f |
'Note': 'uuencode' uses buffered input and assumes that it is not hand\n\
|
|
|
86775f |
typed from a tty. The consequence is that at a tty, you may need to hit\n\
|
|
|
86775f |
Ctl-D several times to terminate input.\n\n\
|
|
|
86775f |
-please send bug reports to: bug-gnu-utils@gnu.org"));
|
|
|
86775f |
+please send bug reports to: bug-gnu-utils@gnu.org\n"));
|
|
|
86775f |
/* short-usage */
|
|
|
86775f |
puts(_("uuencode (GNU sharutils) - encode a file into email friendly text - Ver. 4.13.3\n\
|
|
|
86775f |
-USAGE: uuencode [ -<flag> | --<name> ]... [ in-file ] output-name"));
|
|
|
86775f |
+USAGE: uuencode [ -<flag> | --<name> ]... [ in-file ] output-name\n"));
|
|
|
86775f |
/* detail */
|
|
|
86775f |
puts(_("'uuencode' is used to create an ASCII representation of a file that can be\n\
|
|
|
86775f |
sent over channels that may otherwise corrupt the data. Specifically,\n\
|
|
|
86775f |
--
|
|
|
86775f |
1.8.5.3
|
|
|
86775f |
|