1181834Sroberto/*   -*- buffer-read-only: t -*- vi: set ro:
2290001Sglebius *
3181834Sroberto *  DO NOT EDIT THIS FILE   (genshell.c)
4290001Sglebius *
5290001Sglebius *  It has been AutoGen-ed
6181834Sroberto *  From the definitions    genshell.def
7181834Sroberto *  and the template file   options
8181834Sroberto *
9290001Sglebius * Generated from AutoOpts 41:0:16 templates.
10181834Sroberto *
11290001Sglebius *  AutoOpts is a copyrighted work.  This source file is not encumbered
12290001Sglebius *  by AutoOpts licensing, but is provided under the licensing terms chosen
13290001Sglebius *  by the genshellopt author or copyright holder.  AutoOpts is
14290001Sglebius *  licensed under the terms of the LGPL.  The redistributable library
15290001Sglebius *  (``libopts'') is licensed under the terms of either the LGPL or, at the
16290001Sglebius *  users discretion, the BSD license.  See the AutoOpts and/or libopts sources
17290001Sglebius *  for details.
18181834Sroberto *
19290001Sglebius * The genshellopt program is copyrighted and licensed
20290001Sglebius * under the following terms:
21181834Sroberto *
22290001Sglebius *  Copyright (C) 1999-2014 Bruce Korb, all rights reserved.
23290001Sglebius *  This is free software. It is licensed for use, modification and
24290001Sglebius *  redistribution under the terms of the GNU Lesser General Public License,
25290001Sglebius *  version 2 or later <http://www.gnu.org/licenses/old-licenses/lgpl-2.0.html>
26290001Sglebius *
27290001Sglebius *  The genshellopt library is free software; you can redistribute it and/or
28290001Sglebius *  modify it under the terms of the GNU Library General Public License as
29290001Sglebius *  published by the Free Software Foundation; either version 2 of the
30290001Sglebius *  License, or (at your option) any later version.
31290001Sglebius *
32290001Sglebius *  This library is distributed in the hope that it will be useful, but
33290001Sglebius *  WITHOUT ANY WARRANTY; without even the implied warranty of
34290001Sglebius *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
35290001Sglebius *  Library General Public License for more details.
36290001Sglebius *
37290001Sglebius *  You should have received a copy of the GNU Library General Public
38290001Sglebius *  License along with this library; if not, see
39290001Sglebius *  <http://www.gnu.org/licenses/old-licenses/lgpl-2.0.html>
40181834Sroberto */
41181834Sroberto
42290001Sglebius#ifndef __doxygen__
43290001Sglebius#define OPTION_CODE_COMPILE 1
44290001Sglebius#include "genshell.h"
45290001Sglebius#include <sys/types.h>
46181834Sroberto
47181834Sroberto#include <limits.h>
48290001Sglebius#include <stdio.h>
49290001Sglebius#include <stdlib.h>
50181834Sroberto
51181834Sroberto#ifdef  __cplusplus
52181834Srobertoextern "C" {
53181834Sroberto#endif
54290001Sglebiusextern FILE * option_usage_fp;
55290001Sglebius#define zCopyright      (genshellopt_opt_strs+0)
56290001Sglebius#define zLicenseDescrip (genshellopt_opt_strs+285)
57290001Sglebius
58181834Srobertoextern tUsageProc genshelloptUsage;
59181834Sroberto
60181834Sroberto#ifndef NULL
61181834Sroberto#  define NULL 0
62181834Sroberto#endif
63290001Sglebius
64290001Sglebius/**
65290001Sglebius *  static const strings for genshellopt options
66181834Sroberto */
67290001Sglebiusstatic char const genshellopt_opt_strs[1769] =
68290001Sglebius/*     0 */ "genshellopt 1\n"
69290001Sglebius            "Copyright (C) 1999-2014 Bruce Korb, all rights reserved.\n"
70290001Sglebius            "This is free software. It is licensed for use, modification and\n"
71290001Sglebius            "redistribution under the terms of the GNU Lesser General Public License,\n"
72290001Sglebius            "version 2 or later <http://www.gnu.org/licenses/old-licenses/lgpl-2.0.html>\n\0"
73290001Sglebius/*   285 */ "The genshellopt library is free software; you can redistribute it and/or\n"
74290001Sglebius            "modify it under the terms of the GNU Library General Public License as\n"
75290001Sglebius            "published by the Free Software Foundation; either version 2 of the License,\n"
76290001Sglebius            "or (at your option) any later version.\n\n"
77290001Sglebius            "This library is distributed in the hope that it will be useful, but WITHOUT\n"
78290001Sglebius            "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or\n"
79290001Sglebius            "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public\n"
80290001Sglebius            "License for more details.\n\n"
81290001Sglebius            "You should have received a copy of the GNU Library General Public License\n"
82290001Sglebius            "along with this library; if not, see\n"
83290001Sglebius            "<http://www.gnu.org/licenses/old-licenses/lgpl-2.0.html>\n\0"
84290001Sglebius/*   957 */ "Output Script File\0"
85290001Sglebius/*   976 */ "SCRIPT\0"
86290001Sglebius/*   983 */ "script\0"
87290001Sglebius/*   990 */ "Shell name (follows \"#!\" magic)\0"
88290001Sglebius/*  1022 */ "SHELL\0"
89290001Sglebius/*  1028 */ "no-shell\0"
90290001Sglebius/*  1037 */ "no\0"
91290001Sglebius/*  1040 */ "display extended usage information and exit\0"
92290001Sglebius/*  1084 */ "help\0"
93290001Sglebius/*  1089 */ "extended usage information passed thru pager\0"
94290001Sglebius/*  1134 */ "more-help\0"
95290001Sglebius/*  1144 */ "output version information and exit\0"
96290001Sglebius/*  1180 */ "version\0"
97290001Sglebius/*  1188 */ "GENSHELLOPT\0"
98290001Sglebius/*  1200 */ "genshellopt - Generate Shell Option Processing Script - Ver. 1\n"
99290001Sglebius            "Usage:  %s [ -<flag> [<val>] | --<name>[{=| }<val>] ]...\n\0"
100290001Sglebius/*  1321 */ "autogen-users@lists.sourceforge.net\0"
101290001Sglebius/*  1357 */ "Note that 'shell' is only useful if the output file does not already exist.\n"
102290001Sglebius            "If it does, then the shell name and optional first argument will be\n"
103290001Sglebius            "extracted from the script file.\n\0"
104290001Sglebius/*  1534 */ "If the script file already exists and contains Automated Option Processing\n"
105290001Sglebius            "text, the second line of the file through the ending tag will be replaced\n"
106290001Sglebius            "by the newly generated text.  The first '#!' line will be regenerated.\n\0"
107290001Sglebius/*  1755 */ "genshellopt 1";
108290001Sglebius
109290001Sglebius/**
110290001Sglebius *  script option description:
111290001Sglebius */
112290001Sglebius/** Descriptive text for the script option */
113290001Sglebius#define SCRIPT_DESC      (genshellopt_opt_strs+957)
114290001Sglebius/** Upper-cased name for the script option */
115290001Sglebius#define SCRIPT_NAME      (genshellopt_opt_strs+976)
116290001Sglebius/** Name string for the script option */
117290001Sglebius#define SCRIPT_name      (genshellopt_opt_strs+983)
118290001Sglebius/** Compiled in flag settings for the script option */
119290001Sglebius#define SCRIPT_FLAGS     (OPTST_DISABLED \
120181834Sroberto        | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
121181834Sroberto
122290001Sglebius/**
123290001Sglebius *  shell option description:
124181834Sroberto */
125290001Sglebius/** Descriptive text for the shell option */
126290001Sglebius#define SHELL_DESC      (genshellopt_opt_strs+990)
127290001Sglebius/** Upper-cased name for the shell option */
128290001Sglebius#define SHELL_NAME      (genshellopt_opt_strs+1022)
129290001Sglebius/** disablement name for the shell option */
130290001Sglebius#define NOT_SHELL_name  (genshellopt_opt_strs+1028)
131290001Sglebius/** disablement prefix for the shell option */
132290001Sglebius#define NOT_SHELL_PFX   (genshellopt_opt_strs+1037)
133290001Sglebius/** Name string for the shell option */
134290001Sglebius#define SHELL_name      (NOT_SHELL_name + 3)
135290001Sglebius/** Compiled in flag settings for the shell option */
136290001Sglebius#define SHELL_FLAGS     (OPTST_INITENABLED \
137181834Sroberto        | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
138181834Sroberto
139181834Sroberto/*
140181834Sroberto *  Help/More_Help/Version option descriptions:
141181834Sroberto */
142290001Sglebius#define HELP_DESC       (genshellopt_opt_strs+1040)
143290001Sglebius#define HELP_name       (genshellopt_opt_strs+1084)
144290001Sglebius#ifdef HAVE_WORKING_FORK
145290001Sglebius#define MORE_HELP_DESC  (genshellopt_opt_strs+1089)
146290001Sglebius#define MORE_HELP_name  (genshellopt_opt_strs+1134)
147290001Sglebius#define MORE_HELP_FLAGS (OPTST_IMM | OPTST_NO_INIT)
148290001Sglebius#else
149290001Sglebius#define MORE_HELP_DESC  HELP_DESC
150290001Sglebius#define MORE_HELP_name  HELP_name
151290001Sglebius#define MORE_HELP_FLAGS (OPTST_OMITTED | OPTST_NO_INIT)
152290001Sglebius#endif
153290001Sglebius#ifdef NO_OPTIONAL_OPT_ARGS
154290001Sglebius#  define VER_FLAGS     (OPTST_IMM | OPTST_NO_INIT)
155290001Sglebius#else
156290001Sglebius#  define VER_FLAGS     (OPTST_SET_ARGTYPE(OPARG_TYPE_STRING) | \
157290001Sglebius                         OPTST_ARG_OPTIONAL | OPTST_IMM | OPTST_NO_INIT)
158290001Sglebius#endif
159290001Sglebius#define VER_DESC        (genshellopt_opt_strs+1144)
160290001Sglebius#define VER_name        (genshellopt_opt_strs+1180)
161290001Sglebius/**
162181834Sroberto *  Declare option callback procedures
163181834Sroberto */
164181834Srobertoextern tOptProc
165290001Sglebius    optionBooleanVal,   optionNestedVal,    optionNumericVal,
166290001Sglebius    optionPagedUsage,   optionPrintVersion, optionResetOpt,
167290001Sglebius    optionStackArg,     optionTimeDate,     optionTimeVal,
168290001Sglebius    optionUnstackArg,   optionVendorOption;
169181834Srobertostatic tOptProc
170181834Sroberto    doUsageOpt;
171290001Sglebius#define VER_PROC        optionPrintVersion
172181834Sroberto
173290001Sglebius/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
174290001Sglebius/**
175290001Sglebius *  Define the genshellopt Option Descriptions.
176290001Sglebius * This is an array of GENSHELL_OPTION_CT entries, one for each
177290001Sglebius * option that the genshellopt program responds to.
178181834Sroberto */
179290001Sglebiusstatic tOptDesc optDesc[GENSHELL_OPTION_CT] = {
180290001Sglebius  {  /* entry idx, value */ 0, VALUE_GENSHELL_OPT_SCRIPT,
181290001Sglebius     /* equiv idx, value */ 0, VALUE_GENSHELL_OPT_SCRIPT,
182181834Sroberto     /* equivalenced to  */ NO_EQUIVALENT,
183181834Sroberto     /* min, max, act ct */ 0, 1, 0,
184181834Sroberto     /* opt state flags  */ SCRIPT_FLAGS, 0,
185290001Sglebius     /* last opt argumnt */ { NULL }, /* --script */
186181834Sroberto     /* arg list/cookie  */ NULL,
187181834Sroberto     /* must/cannot opts */ NULL, NULL,
188181834Sroberto     /* option proc      */ NULL,
189290001Sglebius     /* desc, NAME, name */ SCRIPT_DESC, SCRIPT_NAME, SCRIPT_name,
190181834Sroberto     /* disablement strs */ NULL, NULL },
191181834Sroberto
192290001Sglebius  {  /* entry idx, value */ 1, VALUE_GENSHELL_OPT_SHELL,
193290001Sglebius     /* equiv idx, value */ 1, VALUE_GENSHELL_OPT_SHELL,
194181834Sroberto     /* equivalenced to  */ NO_EQUIVALENT,
195181834Sroberto     /* min, max, act ct */ 0, 1, 0,
196181834Sroberto     /* opt state flags  */ SHELL_FLAGS, 0,
197290001Sglebius     /* last opt argumnt */ { NULL }, /* --shell */
198181834Sroberto     /* arg list/cookie  */ NULL,
199181834Sroberto     /* must/cannot opts */ NULL, NULL,
200181834Sroberto     /* option proc      */ NULL,
201290001Sglebius     /* desc, NAME, name */ SHELL_DESC, SHELL_NAME, SHELL_name,
202290001Sglebius     /* disablement strs */ NOT_SHELL_name, NOT_SHELL_PFX },
203181834Sroberto
204290001Sglebius  {  /* entry idx, value */ INDEX_GENSHELL_OPT_VERSION, VALUE_GENSHELL_OPT_VERSION,
205290001Sglebius     /* equiv idx value  */ NO_EQUIVALENT, VALUE_GENSHELL_OPT_VERSION,
206181834Sroberto     /* equivalenced to  */ NO_EQUIVALENT,
207181834Sroberto     /* min, max, act ct */ 0, 1, 0,
208290001Sglebius     /* opt state flags  */ VER_FLAGS, AOUSE_VERSION,
209181834Sroberto     /* last opt argumnt */ { NULL },
210181834Sroberto     /* arg list/cookie  */ NULL,
211181834Sroberto     /* must/cannot opts */ NULL, NULL,
212290001Sglebius     /* option proc      */ VER_PROC,
213290001Sglebius     /* desc, NAME, name */ VER_DESC, NULL, VER_name,
214181834Sroberto     /* disablement strs */ NULL, NULL },
215181834Sroberto
216181834Sroberto
217181834Sroberto
218290001Sglebius  {  /* entry idx, value */ INDEX_GENSHELL_OPT_HELP, VALUE_GENSHELL_OPT_HELP,
219290001Sglebius     /* equiv idx value  */ NO_EQUIVALENT, VALUE_GENSHELL_OPT_HELP,
220181834Sroberto     /* equivalenced to  */ NO_EQUIVALENT,
221181834Sroberto     /* min, max, act ct */ 0, 1, 0,
222290001Sglebius     /* opt state flags  */ OPTST_IMM | OPTST_NO_INIT, AOUSE_HELP,
223181834Sroberto     /* last opt argumnt */ { NULL },
224181834Sroberto     /* arg list/cookie  */ NULL,
225181834Sroberto     /* must/cannot opts */ NULL, NULL,
226181834Sroberto     /* option proc      */ doUsageOpt,
227290001Sglebius     /* desc, NAME, name */ HELP_DESC, NULL, HELP_name,
228181834Sroberto     /* disablement strs */ NULL, NULL },
229181834Sroberto
230290001Sglebius  {  /* entry idx, value */ INDEX_GENSHELL_OPT_MORE_HELP, VALUE_GENSHELL_OPT_MORE_HELP,
231290001Sglebius     /* equiv idx value  */ NO_EQUIVALENT, VALUE_GENSHELL_OPT_MORE_HELP,
232181834Sroberto     /* equivalenced to  */ NO_EQUIVALENT,
233181834Sroberto     /* min, max, act ct */ 0, 1, 0,
234290001Sglebius     /* opt state flags  */ MORE_HELP_FLAGS, AOUSE_MORE_HELP,
235181834Sroberto     /* last opt argumnt */ { NULL },
236181834Sroberto     /* arg list/cookie  */ NULL,
237181834Sroberto     /* must/cannot opts */ NULL,  NULL,
238181834Sroberto     /* option proc      */ optionPagedUsage,
239290001Sglebius     /* desc, NAME, name */ MORE_HELP_DESC, NULL, MORE_HELP_name,
240181834Sroberto     /* disablement strs */ NULL, NULL }
241181834Sroberto};
242181834Sroberto
243181834Sroberto
244290001Sglebius/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
245290001Sglebius/** Reference to the upper cased version of genshellopt. */
246290001Sglebius#define zPROGNAME       (genshellopt_opt_strs+1188)
247290001Sglebius/** Reference to the title line for genshellopt usage. */
248290001Sglebius#define zUsageTitle     (genshellopt_opt_strs+1200)
249290001Sglebius/** There is no genshellopt configuration file. */
250290001Sglebius#define zRcName         NULL
251290001Sglebius/** There are no directories to search for genshellopt config files. */
252290001Sglebius#define apzHomeList     NULL
253290001Sglebius/** The genshellopt program bug email address. */
254290001Sglebius#define zBugsAddr       (genshellopt_opt_strs+1321)
255290001Sglebius/** Clarification/explanation of what genshellopt does. */
256290001Sglebius#define zExplain        (genshellopt_opt_strs+1357)
257290001Sglebius/** Extra detail explaining what genshellopt does. */
258290001Sglebius#define zDetail         (genshellopt_opt_strs+1534)
259290001Sglebius/** The full version string for genshellopt. */
260290001Sglebius#define zFullVersion    (genshellopt_opt_strs+1755)
261290001Sglebius/* extracted from optcode.tlib near line 364 */
262181834Sroberto
263181834Sroberto#if defined(ENABLE_NLS)
264181834Sroberto# define OPTPROC_BASE OPTPROC_TRANSLATE
265181834Sroberto  static tOptionXlateProc translate_option_strings;
266181834Sroberto#else
267181834Sroberto# define OPTPROC_BASE OPTPROC_NONE
268181834Sroberto# define translate_option_strings NULL
269181834Sroberto#endif /* ENABLE_NLS */
270181834Sroberto
271290001Sglebius#define genshellopt_full_usage (NULL)
272290001Sglebius#define genshellopt_short_usage (NULL)
273290001Sglebius
274290001Sglebius#endif /* not defined __doxygen__ */
275290001Sglebius
276290001Sglebius/*
277290001Sglebius *  Create the static procedure(s) declared above.
278290001Sglebius */
279290001Sglebius/**
280290001Sglebius * The callout function that invokes the genshelloptUsage function.
281290001Sglebius *
282290001Sglebius * @param[in] opts the AutoOpts option description structure
283290001Sglebius * @param[in] od   the descriptor for the "help" (usage) option.
284290001Sglebius * @noreturn
285290001Sglebius */
286290001Sglebiusstatic void
287290001SglebiusdoUsageOpt(tOptions * opts, tOptDesc * od)
288290001Sglebius{
289290001Sglebius    int ex_code;
290290001Sglebius    ex_code = GENSHELLOPT_EXIT_SUCCESS;
291290001Sglebius    genshelloptUsage(&genshelloptOptions, ex_code);
292290001Sglebius    /* NOTREACHED */
293290001Sglebius    exit(1);
294290001Sglebius    (void)opts;
295290001Sglebius    (void)od;
296290001Sglebius}
297290001Sglebius/* extracted from optmain.tlib near line 1250 */
298290001Sglebius
299290001Sglebius/**
300290001Sglebius * The directory containing the data associated with genshellopt.
301290001Sglebius */
302290001Sglebius#ifndef  PKGDATADIR
303290001Sglebius# define PKGDATADIR ""
304290001Sglebius#endif
305290001Sglebius
306290001Sglebius/**
307290001Sglebius * Information about the person or institution that packaged genshellopt
308290001Sglebius * for the current distribution.
309290001Sglebius */
310290001Sglebius#ifndef  WITH_PACKAGER
311290001Sglebius# define genshellopt_packager_info NULL
312290001Sglebius#else
313290001Sglebius/** Packager information for genshellopt. */
314290001Sglebiusstatic char const genshellopt_packager_info[] =
315290001Sglebius    "Packaged by " WITH_PACKAGER
316290001Sglebius
317290001Sglebius# ifdef WITH_PACKAGER_VERSION
318290001Sglebius        " ("WITH_PACKAGER_VERSION")"
319290001Sglebius# endif
320290001Sglebius
321290001Sglebius# ifdef WITH_PACKAGER_BUG_REPORTS
322290001Sglebius    "\nReport genshellopt bugs to " WITH_PACKAGER_BUG_REPORTS
323290001Sglebius# endif
324290001Sglebius    "\n";
325290001Sglebius#endif
326290001Sglebius#ifndef __doxygen__
327290001Sglebius
328290001Sglebius#endif /* __doxygen__ */
329290001Sglebius/**
330290001Sglebius * The option definitions for genshellopt.  The one structure that
331290001Sglebius * binds them all.
332290001Sglebius */
333181834SrobertotOptions genshelloptOptions = {
334181834Sroberto    OPTIONS_STRUCT_VERSION,
335181834Sroberto    0, NULL,                    /* original argc + argv    */
336181834Sroberto    ( OPTPROC_BASE
337181834Sroberto    + OPTPROC_ERRSTOP
338181834Sroberto    + OPTPROC_SHORTOPT
339181834Sroberto    + OPTPROC_LONGOPT
340181834Sroberto    + OPTPROC_NO_REQ_OPT
341181834Sroberto    + OPTPROC_NEGATIONS
342181834Sroberto    + OPTPROC_NO_ARGS ),
343181834Sroberto    0, NULL,                    /* current option index, current option */
344181834Sroberto    NULL,         NULL,         zPROGNAME,
345290001Sglebius    zRcName,      zCopyright,   zLicenseDescrip,
346181834Sroberto    zFullVersion, apzHomeList,  zUsageTitle,
347181834Sroberto    zExplain,     zDetail,      optDesc,
348181834Sroberto    zBugsAddr,                  /* address to send bugs to */
349181834Sroberto    NULL, NULL,                 /* extensions/saved state  */
350290001Sglebius    genshelloptUsage, /* usage procedure */
351181834Sroberto    translate_option_strings,   /* translation procedure */
352181834Sroberto    /*
353181834Sroberto     *  Indexes to special options
354181834Sroberto     */
355290001Sglebius    { INDEX_GENSHELL_OPT_MORE_HELP, /* more-help option index */
356290001Sglebius      NO_EQUIVALENT, /* save option index */
357290001Sglebius      NO_EQUIVALENT, /* '-#' option index */
358181834Sroberto      NO_EQUIVALENT /* index of default opt */
359181834Sroberto    },
360290001Sglebius    5 /* full option count */, 2 /* user option count */,
361290001Sglebius    genshellopt_full_usage, genshellopt_short_usage,
362290001Sglebius    NULL, NULL,
363290001Sglebius    PKGDATADIR, genshellopt_packager_info
364181834Sroberto};
365181834Sroberto
366290001Sglebius#if ENABLE_NLS
367290001Sglebius/**
368290001Sglebius * This code is designed to translate translatable option text for the
369290001Sglebius * genshellopt program.  These translations happen upon entry
370290001Sglebius * to optionProcess().
371181834Sroberto */
372181834Sroberto#include <stdio.h>
373181834Sroberto#include <stdlib.h>
374181834Sroberto#include <string.h>
375181834Sroberto#include <unistd.h>
376290001Sglebius#ifdef HAVE_DCGETTEXT
377290001Sglebius# include <gettext.h>
378290001Sglebius#endif
379181834Sroberto#include <autoopts/usage-txt.h>
380181834Sroberto
381290001Sglebiusstatic char * AO_gettext(char const * pz);
382290001Sglebiusstatic void   coerce_it(void ** s);
383181834Sroberto
384290001Sglebius/**
385290001Sglebius * AutoGen specific wrapper function for gettext.  It relies on the macro _()
386290001Sglebius * to convert from English to the target language, then strdup-duplicates the
387290001Sglebius * result string.  It tries the "libopts" domain first, then whatever has been
388290001Sglebius * set via the \a textdomain(3) call.
389290001Sglebius *
390290001Sglebius * @param[in] pz the input text used as a lookup key.
391290001Sglebius * @returns the translated text (if there is one),
392290001Sglebius *   or the original text (if not).
393290001Sglebius */
394290001Sglebiusstatic char *
395290001SglebiusAO_gettext(char const * pz)
396181834Sroberto{
397290001Sglebius    char * res;
398181834Sroberto    if (pz == NULL)
399181834Sroberto        return NULL;
400290001Sglebius#ifdef HAVE_DCGETTEXT
401290001Sglebius    /*
402290001Sglebius     * While processing the option_xlateable_txt data, try to use the
403290001Sglebius     * "libopts" domain.  Once we switch to the option descriptor data,
404290001Sglebius     * do *not* use that domain.
405290001Sglebius     */
406290001Sglebius    if (option_xlateable_txt.field_ct != 0) {
407290001Sglebius        res = dgettext("libopts", pz);
408290001Sglebius        if (res == pz)
409290001Sglebius            res = (char *)VOIDP(_(pz));
410290001Sglebius    } else
411290001Sglebius        res = (char *)VOIDP(_(pz));
412290001Sglebius#else
413290001Sglebius    res = (char *)VOIDP(_(pz));
414290001Sglebius#endif
415290001Sglebius    if (res == pz)
416290001Sglebius        return res;
417290001Sglebius    res = strdup(res);
418290001Sglebius    if (res == NULL) {
419290001Sglebius        fputs(_("No memory for duping translated strings\n"), stderr);
420290001Sglebius        exit(GENSHELLOPT_EXIT_FAILURE);
421181834Sroberto    }
422290001Sglebius    return res;
423181834Sroberto}
424181834Sroberto
425290001Sglebius/**
426290001Sglebius * All the pointers we use are marked "* const", but they are stored in
427290001Sglebius * writable memory.  Coerce the mutability and set the pointer.
428290001Sglebius */
429290001Sglebiusstatic void coerce_it(void ** s) { *s = AO_gettext(*s);
430290001Sglebius}
431181834Sroberto
432290001Sglebius/**
433290001Sglebius * Translate all the translatable strings in the genshelloptOptions
434290001Sglebius * structure defined above.  This is done only once.
435181834Sroberto */
436181834Srobertostatic void
437290001Sglebiustranslate_option_strings(void)
438181834Sroberto{
439290001Sglebius    tOptions * const opts = &genshelloptOptions;
440290001Sglebius
441181834Sroberto    /*
442181834Sroberto     *  Guard against re-translation.  It won't work.  The strings will have
443181834Sroberto     *  been changed by the first pass through this code.  One shot only.
444181834Sroberto     */
445290001Sglebius    if (option_xlateable_txt.field_ct != 0) {
446290001Sglebius        /*
447290001Sglebius         *  Do the translations.  The first pointer follows the field count
448290001Sglebius         *  field.  The field count field is the size of a pointer.
449290001Sglebius         */
450290001Sglebius        char ** ppz = (char**)VOIDP(&(option_xlateable_txt));
451290001Sglebius        int     ix  = option_xlateable_txt.field_ct;
452181834Sroberto
453181834Sroberto        do {
454290001Sglebius            ppz++; /* skip over field_ct */
455181834Sroberto            *ppz = AO_gettext(*ppz);
456181834Sroberto        } while (--ix > 0);
457290001Sglebius        /* prevent re-translation and disable "libopts" domain lookup */
458290001Sglebius        option_xlateable_txt.field_ct = 0;
459181834Sroberto
460290001Sglebius        coerce_it(VOIDP(&(opts->pzCopyright)));
461290001Sglebius        coerce_it(VOIDP(&(opts->pzCopyNotice)));
462290001Sglebius        coerce_it(VOIDP(&(opts->pzFullVersion)));
463290001Sglebius        coerce_it(VOIDP(&(opts->pzUsageTitle)));
464290001Sglebius        coerce_it(VOIDP(&(opts->pzExplain)));
465290001Sglebius        coerce_it(VOIDP(&(opts->pzDetail)));
466290001Sglebius        {
467290001Sglebius            tOptDesc * od = opts->pOptDesc;
468290001Sglebius            for (ix = opts->optCt; ix > 0; ix--, od++)
469290001Sglebius                coerce_it(VOIDP(&(od->pzText)));
470181834Sroberto        }
471181834Sroberto    }
472181834Sroberto}
473181834Sroberto#endif /* ENABLE_NLS */
474181834Sroberto
475290001Sglebius#ifdef DO_NOT_COMPILE_THIS_CODE_IT_IS_FOR_GETTEXT
476290001Sglebius/** I18N function strictly for xgettext.  Do not compile. */
477290001Sglebiusstatic void bogus_function(void) {
478290001Sglebius  /* TRANSLATORS:
479290001Sglebius
480290001Sglebius     The following dummy function was crated solely so that xgettext can
481290001Sglebius     extract the correct strings.  These strings are actually referenced
482290001Sglebius     by a field name in the genshelloptOptions structure noted in the
483290001Sglebius     comments below.  The literal text is defined in genshellopt_opt_strs.
484290001Sglebius
485290001Sglebius     NOTE: the strings below are segmented with respect to the source string
486290001Sglebius     genshellopt_opt_strs.  The strings above are handed off for translation
487290001Sglebius     at run time a paragraph at a time.  Consequently, they are presented here
488290001Sglebius     for translation a paragraph at a time.
489290001Sglebius
490290001Sglebius     ALSO: often the description for an option will reference another option
491290001Sglebius     by name.  These are set off with apostrophe quotes (I hope).  Do not
492290001Sglebius     translate option names.
493290001Sglebius   */
494290001Sglebius  /* referenced via genshelloptOptions.pzCopyright */
495290001Sglebius  puts(_("genshellopt 1\n\
496290001SglebiusCopyright (C) 1999-2014 Bruce Korb, all rights reserved.\n\
497290001SglebiusThis is free software. It is licensed for use, modification and\n\
498290001Sglebiusredistribution under the terms of the GNU Lesser General Public License,\n\
499290001Sglebiusversion 2 or later <http://www.gnu.org/licenses/old-licenses/lgpl-2.0.html>\n"));
500290001Sglebius
501290001Sglebius  /* referenced via genshelloptOptions.pzCopyNotice */
502290001Sglebius  puts(_("The genshellopt library is free software; you can redistribute it and/or\n\
503290001Sglebiusmodify it under the terms of the GNU Library General Public License as\n\
504290001Sglebiuspublished by the Free Software Foundation; either version 2 of the License,\n\
505290001Sglebiusor (at your option) any later version.\n\n"));
506290001Sglebius  puts(_("This library is distributed in the hope that it will be useful, but WITHOUT\n\
507290001SglebiusANY WARRANTY; without even the implied warranty of MERCHANTABILITY or\n\
508290001SglebiusFITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public\n\
509290001SglebiusLicense for more details.\n\n"));
510290001Sglebius  puts(_("You should have received a copy of the GNU Library General Public License\n\
511290001Sglebiusalong with this library; if not, see\n\
512290001Sglebius<http://www.gnu.org/licenses/old-licenses/lgpl-2.0.html>\n"));
513290001Sglebius
514290001Sglebius  /* referenced via genshelloptOptions.pOptDesc->pzText */
515290001Sglebius  puts(_("Output Script File"));
516290001Sglebius
517290001Sglebius  /* referenced via genshelloptOptions.pOptDesc->pzText */
518290001Sglebius  puts(_("Shell name (follows \"#!\" magic)"));
519290001Sglebius
520290001Sglebius  /* referenced via genshelloptOptions.pOptDesc->pzText */
521290001Sglebius  puts(_("display extended usage information and exit"));
522290001Sglebius
523290001Sglebius  /* referenced via genshelloptOptions.pOptDesc->pzText */
524290001Sglebius  puts(_("extended usage information passed thru pager"));
525290001Sglebius
526290001Sglebius  /* referenced via genshelloptOptions.pOptDesc->pzText */
527290001Sglebius  puts(_("output version information and exit"));
528290001Sglebius
529290001Sglebius  /* referenced via genshelloptOptions.pzUsageTitle */
530290001Sglebius  puts(_("genshellopt - Generate Shell Option Processing Script - Ver. 1\n\
531290001SglebiusUsage:  %s [ -<flag> [<val>] | --<name>[{=| }<val>] ]...\n"));
532290001Sglebius
533290001Sglebius  /* referenced via genshelloptOptions.pzExplain */
534290001Sglebius  puts(_("Note that 'shell' is only useful if the output file does not already exist.\n\
535290001SglebiusIf it does, then the shell name and optional first argument will be\n\
536290001Sglebiusextracted from the script file.\n"));
537290001Sglebius
538290001Sglebius  /* referenced via genshelloptOptions.pzDetail */
539290001Sglebius  puts(_("If the script file already exists and contains Automated Option Processing\n\
540290001Sglebiustext, the second line of the file through the ending tag will be replaced\n\
541290001Sglebiusby the newly generated text.  The first '#!' line will be regenerated.\n"));
542290001Sglebius
543290001Sglebius  /* referenced via genshelloptOptions.pzFullVersion */
544290001Sglebius  puts(_("genshellopt 1"));
545290001Sglebius
546290001Sglebius  /* referenced via genshelloptOptions.pzFullUsage */
547290001Sglebius  puts(_("<<<NOT-FOUND>>>"));
548290001Sglebius
549290001Sglebius  /* referenced via genshelloptOptions.pzShortUsage */
550290001Sglebius  puts(_("<<<NOT-FOUND>>>"));
551290001Sglebius  /* LIBOPTS-MESSAGES: */
552290001Sglebius#line 67 "../autoopts.c"
553290001Sglebius  puts(_("allocation of %d bytes failed\n"));
554290001Sglebius#line 93 "../autoopts.c"
555290001Sglebius  puts(_("allocation of %d bytes failed\n"));
556290001Sglebius#line 53 "../init.c"
557290001Sglebius  puts(_("AutoOpts function called without option descriptor\n"));
558290001Sglebius#line 86 "../init.c"
559290001Sglebius  puts(_("\tThis exceeds the compiled library version:  "));
560290001Sglebius#line 84 "../init.c"
561290001Sglebius  puts(_("Automated Options Processing Error!\n"
562290001Sglebius       "\t%s called AutoOpts function with structure version %d:%d:%d.\n"));
563290001Sglebius#line 80 "../autoopts.c"
564290001Sglebius  puts(_("realloc of %d bytes at 0x%p failed\n"));
565290001Sglebius#line 88 "../init.c"
566290001Sglebius  puts(_("\tThis is less than the minimum library version:  "));
567290001Sglebius#line 121 "../version.c"
568290001Sglebius  puts(_("Automated Options version %s\n"
569290001Sglebius       "\tCopyright (C) 1999-2014 by Bruce Korb - all rights reserved\n"));
570290001Sglebius#line 87 "../makeshell.c"
571290001Sglebius  puts(_("(AutoOpts bug):  %s.\n"));
572290001Sglebius#line 90 "../reset.c"
573290001Sglebius  puts(_("optionResetOpt() called, but reset-option not configured"));
574290001Sglebius#line 292 "../usage.c"
575290001Sglebius  puts(_("could not locate the 'help' option"));
576290001Sglebius#line 336 "../autoopts.c"
577290001Sglebius  puts(_("optionProcess() was called with invalid data"));
578290001Sglebius#line 748 "../usage.c"
579290001Sglebius  puts(_("invalid argument type specified"));
580290001Sglebius#line 598 "../find.c"
581290001Sglebius  puts(_("defaulted to option with optional arg"));
582290001Sglebius#line 76 "../alias.c"
583290001Sglebius  puts(_("aliasing option is out of range."));
584290001Sglebius#line 234 "../enum.c"
585290001Sglebius  puts(_("%s error:  the keyword '%s' is ambiguous for %s\n"));
586290001Sglebius#line 108 "../find.c"
587290001Sglebius  puts(_("  The following options match:\n"));
588290001Sglebius#line 293 "../find.c"
589290001Sglebius  puts(_("%s: ambiguous option name: %s (matches %d options)\n"));
590290001Sglebius#line 161 "../check.c"
591290001Sglebius  puts(_("%s: Command line arguments required\n"));
592290001Sglebius#line 43 "../alias.c"
593290001Sglebius  puts(_("%d %s%s options allowed\n"));
594290001Sglebius#line 94 "../makeshell.c"
595290001Sglebius  puts(_("%s error %d (%s) calling %s for '%s'\n"));
596290001Sglebius#line 306 "../makeshell.c"
597290001Sglebius  puts(_("interprocess pipe"));
598290001Sglebius#line 168 "../version.c"
599290001Sglebius  puts(_("error: version option argument '%c' invalid.  Use:\n"
600290001Sglebius       "\t'v' - version only\n"
601290001Sglebius       "\t'c' - version and copyright\n"
602290001Sglebius       "\t'n' - version and full copyright notice\n"));
603290001Sglebius#line 58 "../check.c"
604290001Sglebius  puts(_("%s error:  the '%s' and '%s' options conflict\n"));
605290001Sglebius#line 217 "../find.c"
606290001Sglebius  puts(_("%s: The '%s' option has been disabled."));
607290001Sglebius#line 430 "../find.c"
608290001Sglebius  puts(_("%s: The '%s' option has been disabled."));
609290001Sglebius#line 38 "../alias.c"
610290001Sglebius  puts(_("-equivalence"));
611290001Sglebius#line 469 "../find.c"
612290001Sglebius  puts(_("%s: illegal option -- %c\n"));
613290001Sglebius#line 110 "../reset.c"
614290001Sglebius  puts(_("%s: illegal option -- %c\n"));
615290001Sglebius#line 271 "../find.c"
616290001Sglebius  puts(_("%s: illegal option -- %s\n"));
617290001Sglebius#line 755 "../find.c"
618290001Sglebius  puts(_("%s: illegal option -- %s\n"));
619290001Sglebius#line 118 "../reset.c"
620290001Sglebius  puts(_("%s: illegal option -- %s\n"));
621290001Sglebius#line 335 "../find.c"
622290001Sglebius  puts(_("%s: unknown vendor extension option -- %s\n"));
623290001Sglebius#line 159 "../enum.c"
624290001Sglebius  puts(_("  or an integer from %d through %d\n"));
625290001Sglebius#line 169 "../enum.c"
626290001Sglebius  puts(_("  or an integer from %d through %d\n"));
627290001Sglebius#line 747 "../usage.c"
628290001Sglebius  puts(_("%s error:  invalid option descriptor for %s\n"));
629290001Sglebius#line 1081 "../usage.c"
630290001Sglebius  puts(_("%s error:  invalid option descriptor for %s\n"));
631290001Sglebius#line 385 "../find.c"
632290001Sglebius  puts(_("%s: invalid option name: %s\n"));
633290001Sglebius#line 527 "../find.c"
634290001Sglebius  puts(_("%s: The '%s' option requires an argument.\n"));
635290001Sglebius#line 156 "../autoopts.c"
636290001Sglebius  puts(_("(AutoOpts bug):  Equivalenced option '%s' was equivalenced to both\n"
637290001Sglebius       "\t'%s' and '%s'."));
638290001Sglebius#line 94 "../check.c"
639290001Sglebius  puts(_("%s error:  The %s option is required\n"));
640290001Sglebius#line 632 "../find.c"
641290001Sglebius  puts(_("%s: The '%s' option cannot have an argument.\n"));
642290001Sglebius#line 151 "../check.c"
643290001Sglebius  puts(_("%s: Command line arguments are not allowed.\n"));
644290001Sglebius#line 535 "../save.c"
645290001Sglebius  puts(_("error %d (%s) creating %s\n"));
646290001Sglebius#line 234 "../enum.c"
647290001Sglebius  puts(_("%s error:  '%s' does not match any %s keywords.\n"));
648290001Sglebius#line 93 "../reset.c"
649290001Sglebius  puts(_("%s error: The '%s' option requires an argument.\n"));
650290001Sglebius#line 184 "../save.c"
651290001Sglebius  puts(_("error %d (%s) stat-ing %s\n"));
652290001Sglebius#line 238 "../save.c"
653290001Sglebius  puts(_("error %d (%s) stat-ing %s\n"));
654290001Sglebius#line 143 "../restore.c"
655290001Sglebius  puts(_("%s error: no saved option state\n"));
656290001Sglebius#line 231 "../autoopts.c"
657290001Sglebius  puts(_("'%s' is not a command line option.\n"));
658290001Sglebius#line 111 "../time.c"
659290001Sglebius  puts(_("%s error:  '%s' is not a recognizable date/time.\n"));
660290001Sglebius#line 132 "../save.c"
661290001Sglebius  puts(_("'%s' not defined\n"));
662290001Sglebius#line 50 "../time.c"
663290001Sglebius  puts(_("%s error:  '%s' is not a recognizable time duration.\n"));
664290001Sglebius#line 92 "../check.c"
665290001Sglebius  puts(_("%s error:  The %s option must appear %d times.\n"));
666290001Sglebius#line 164 "../numeric.c"
667290001Sglebius  puts(_("%s error:  '%s' is not a recognizable number.\n"));
668290001Sglebius#line 200 "../enum.c"
669290001Sglebius  puts(_("%s error:  %s exceeds %s keyword count\n"));
670290001Sglebius#line 330 "../usage.c"
671290001Sglebius  puts(_("Try '%s %s' for more information.\n"));
672290001Sglebius#line 45 "../alias.c"
673290001Sglebius  puts(_("one %s%s option allowed\n"));
674290001Sglebius#line 208 "../makeshell.c"
675290001Sglebius  puts(_("standard output"));
676290001Sglebius#line 943 "../makeshell.c"
677290001Sglebius  puts(_("standard output"));
678290001Sglebius#line 274 "../usage.c"
679290001Sglebius  puts(_("standard output"));
680290001Sglebius#line 415 "../usage.c"
681290001Sglebius  puts(_("standard output"));
682290001Sglebius#line 625 "../usage.c"
683290001Sglebius  puts(_("standard output"));
684290001Sglebius#line 175 "../version.c"
685290001Sglebius  puts(_("standard output"));
686290001Sglebius#line 274 "../usage.c"
687290001Sglebius  puts(_("standard error"));
688290001Sglebius#line 415 "../usage.c"
689290001Sglebius  puts(_("standard error"));
690290001Sglebius#line 625 "../usage.c"
691290001Sglebius  puts(_("standard error"));
692290001Sglebius#line 175 "../version.c"
693290001Sglebius  puts(_("standard error"));
694290001Sglebius#line 208 "../makeshell.c"
695290001Sglebius  puts(_("write"));
696290001Sglebius#line 943 "../makeshell.c"
697290001Sglebius  puts(_("write"));
698290001Sglebius#line 273 "../usage.c"
699290001Sglebius  puts(_("write"));
700290001Sglebius#line 414 "../usage.c"
701290001Sglebius  puts(_("write"));
702290001Sglebius#line 624 "../usage.c"
703290001Sglebius  puts(_("write"));
704290001Sglebius#line 174 "../version.c"
705290001Sglebius  puts(_("write"));
706290001Sglebius#line 60 "../numeric.c"
707290001Sglebius  puts(_("%s error:  %s option value %ld is out of range.\n"));
708290001Sglebius#line 44 "../check.c"
709290001Sglebius  puts(_("%s error:  %s option requires the %s option\n"));
710290001Sglebius#line 131 "../save.c"
711290001Sglebius  puts(_("%s warning:  cannot save options - %s not regular file\n"));
712290001Sglebius#line 183 "../save.c"
713290001Sglebius  puts(_("%s warning:  cannot save options - %s not regular file\n"));
714290001Sglebius#line 237 "../save.c"
715290001Sglebius  puts(_("%s warning:  cannot save options - %s not regular file\n"));
716290001Sglebius#line 256 "../save.c"
717290001Sglebius  puts(_("%s warning:  cannot save options - %s not regular file\n"));
718290001Sglebius#line 534 "../save.c"
719290001Sglebius  puts(_("%s warning:  cannot save options - %s not regular file\n"));
720290001Sglebius  /* END-LIBOPTS-MESSAGES */
721290001Sglebius
722290001Sglebius  /* USAGE-TEXT: */
723290001Sglebius#line 873 "../usage.c"
724290001Sglebius  puts(_("\t\t\t\t- an alternate for '%s'\n"));
725290001Sglebius#line 1148 "../usage.c"
726290001Sglebius  puts(_("Version, usage and configuration options:"));
727290001Sglebius#line 924 "../usage.c"
728290001Sglebius  puts(_("\t\t\t\t- default option for unnamed options\n"));
729290001Sglebius#line 837 "../usage.c"
730290001Sglebius  puts(_("\t\t\t\t- disabled as '--%s'\n"));
731290001Sglebius#line 1117 "../usage.c"
732290001Sglebius  puts(_(" --- %-14s %s\n"));
733290001Sglebius#line 1115 "../usage.c"
734290001Sglebius  puts(_("This option has been disabled"));
735290001Sglebius#line 864 "../usage.c"
736290001Sglebius  puts(_("\t\t\t\t- enabled by default\n"));
737290001Sglebius#line 40 "../alias.c"
738290001Sglebius  puts(_("%s error:  only "));
739290001Sglebius#line 1194 "../usage.c"
740290001Sglebius  puts(_(" - examining environment variables named %s_*\n"));
741290001Sglebius#line 168 "../file.c"
742290001Sglebius  puts(_("\t\t\t\t- file must not pre-exist\n"));
743290001Sglebius#line 172 "../file.c"
744290001Sglebius  puts(_("\t\t\t\t- file must pre-exist\n"));
745290001Sglebius#line 380 "../usage.c"
746290001Sglebius  puts(_("Options are specified by doubled hyphens and their name or by a single\n"
747290001Sglebius       "hyphen and the flag character.\n"));
748290001Sglebius#line 921 "../makeshell.c"
749290001Sglebius  puts(_("\n"
750290001Sglebius       "= = = = = = = =\n\n"
751290001Sglebius       "This incarnation of genshell will produce\n"
752290001Sglebius       "a shell script to parse the options for %s:\n\n"));
753290001Sglebius#line 166 "../enum.c"
754290001Sglebius  puts(_("  or an integer mask with any of the lower %d bits set\n"));
755290001Sglebius#line 897 "../usage.c"
756290001Sglebius  puts(_("\t\t\t\t- is a set membership option\n"));
757290001Sglebius#line 918 "../usage.c"
758290001Sglebius  puts(_("\t\t\t\t- must appear between %d and %d times\n"));
759290001Sglebius#line 382 "../usage.c"
760290001Sglebius  puts(_("Options are specified by single or double hyphens and their name.\n"));
761290001Sglebius#line 904 "../usage.c"
762290001Sglebius  puts(_("\t\t\t\t- may appear multiple times\n"));
763290001Sglebius#line 891 "../usage.c"
764290001Sglebius  puts(_("\t\t\t\t- may not be preset\n"));
765290001Sglebius#line 1309 "../usage.c"
766290001Sglebius  puts(_("   Arg Option-Name    Description\n"));
767290001Sglebius#line 1245 "../usage.c"
768290001Sglebius  puts(_("  Flg Arg Option-Name    Description\n"));
769290001Sglebius#line 1303 "../usage.c"
770290001Sglebius  puts(_("  Flg Arg Option-Name    Description\n"));
771290001Sglebius#line 1304 "../usage.c"
772290001Sglebius  puts(_(" %3s %s"));
773290001Sglebius#line 1310 "../usage.c"
774290001Sglebius  puts(_(" %3s %s"));
775290001Sglebius#line 387 "../usage.c"
776290001Sglebius  puts(_("The '-#<number>' option may omit the hash char\n"));
777290001Sglebius#line 383 "../usage.c"
778290001Sglebius  puts(_("All arguments are named options.\n"));
779290001Sglebius#line 971 "../usage.c"
780290001Sglebius  puts(_(" - reading file %s"));
781290001Sglebius#line 409 "../usage.c"
782290001Sglebius  puts(_("\n"
783290001Sglebius       "Please send bug reports to:  <%s>\n"));
784290001Sglebius#line 100 "../version.c"
785290001Sglebius  puts(_("\n"
786290001Sglebius       "Please send bug reports to:  <%s>\n"));
787290001Sglebius#line 129 "../version.c"
788290001Sglebius  puts(_("\n"
789290001Sglebius       "Please send bug reports to:  <%s>\n"));
790290001Sglebius#line 903 "../usage.c"
791290001Sglebius  puts(_("\t\t\t\t- may NOT appear - preset only\n"));
792290001Sglebius#line 944 "../usage.c"
793290001Sglebius  puts(_("\n"
794290001Sglebius       "The following option preset mechanisms are supported:\n"));
795290001Sglebius#line 1192 "../usage.c"
796290001Sglebius  puts(_("\n"
797290001Sglebius       "The following option preset mechanisms are supported:\n"));
798290001Sglebius#line 682 "../usage.c"
799290001Sglebius  puts(_("prohibits these options:\n"));
800290001Sglebius#line 677 "../usage.c"
801290001Sglebius  puts(_("prohibits the option '%s'\n"));
802290001Sglebius#line 81 "../numeric.c"
803290001Sglebius  puts(_("%s%ld to %ld"));
804290001Sglebius#line 79 "../numeric.c"
805290001Sglebius  puts(_("%sgreater than or equal to %ld"));
806290001Sglebius#line 75 "../numeric.c"
807290001Sglebius  puts(_("%s%ld exactly"));
808290001Sglebius#line 68 "../numeric.c"
809290001Sglebius  puts(_("%sit must lie in one of the ranges:\n"));
810290001Sglebius#line 68 "../numeric.c"
811290001Sglebius  puts(_("%sit must be in the range:\n"));
812290001Sglebius#line 88 "../numeric.c"
813290001Sglebius  puts(_(", or\n"));
814290001Sglebius#line 66 "../numeric.c"
815290001Sglebius  puts(_("%sis scalable with a suffix: k/K/m/M/g/G/t/T\n"));
816290001Sglebius#line 77 "../numeric.c"
817290001Sglebius  puts(_("%sless than or equal to %ld"));
818290001Sglebius#line 390 "../usage.c"
819290001Sglebius  puts(_("Operands and options may be intermixed.  They will be reordered.\n"));
820290001Sglebius#line 652 "../usage.c"
821290001Sglebius  puts(_("requires the option '%s'\n"));
822290001Sglebius#line 655 "../usage.c"
823290001Sglebius  puts(_("requires these options:\n"));
824290001Sglebius#line 1321 "../usage.c"
825290001Sglebius  puts(_("   Arg Option-Name   Req?  Description\n"));
826290001Sglebius#line 1315 "../usage.c"
827290001Sglebius  puts(_("  Flg Arg Option-Name   Req?  Description\n"));
828290001Sglebius#line 167 "../enum.c"
829290001Sglebius  puts(_("or you may use a numeric representation.  Preceding these with a '!'\n"
830290001Sglebius       "will clear the bits, specifying 'none' will clear all bits, and 'all'\n"
831290001Sglebius       "will set them all.  Multiple entries may be passed as an option\n"
832290001Sglebius       "argument list.\n"));
833290001Sglebius#line 910 "../usage.c"
834290001Sglebius  puts(_("\t\t\t\t- may appear up to %d times\n"));
835290001Sglebius#line 77 "../enum.c"
836290001Sglebius  puts(_("The valid \"%s\" option keywords are:\n"));
837290001Sglebius#line 1152 "../usage.c"
838290001Sglebius  puts(_("The next option supports vendor supported extra options:"));
839290001Sglebius#line 773 "../usage.c"
840290001Sglebius  puts(_("These additional options are:"));
841290001Sglebius  /* END-USAGE-TEXT */
842290001Sglebius}
843290001Sglebius#endif /* uncompilable code */
844181834Sroberto#ifdef  __cplusplus
845181834Sroberto}
846181834Sroberto#endif
847181834Sroberto/* genshell.c ends here */
848