1 /* -*- buffer-read-only: t -*- vi: set ro:
3 * DO NOT EDIT THIS FILE (ao-strs.c)
5 * It has been AutoGen-ed
6 * From the definitions ao-strs.def
7 * and the template file strings
9 * Copyright (C) 2011-2015 Bruce Korb, all rights reserved.
10 * This is free software. It is licensed for use, modification and
11 * redistribution under the terms of the
12 * Modified (3 clause) Berkeley Software Distribution License
13 * <http://www.xfree86.org/3.3.6/COPYRIGHT2.html>
15 * Redistribution and use in source and binary forms, with or without
16 * modification, are permitted provided that the following conditions
18 * 1. Redistributions of source code must retain the above copyright
19 * notice, this list of conditions and the following disclaimer.
20 * 2. Redistributions in binary form must reproduce the above copyright
21 * notice, this list of conditions and the following disclaimer in the
22 * documentation and/or other materials provided with the distribution.
23 * 3. Neither the name ``Bruce Korb'' nor the name of any other
24 * contributor may be used to endorse or promote products derived
25 * from this software without specific prior written permission.
27 * strings IS PROVIDED BY Bruce Korb ``AS IS'' AND ANY EXPRESS
28 * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
29 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
30 * ARE DISCLAIMED. IN NO EVENT SHALL Bruce Korb OR ANY OTHER CONTRIBUTORS
31 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
32 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
33 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
34 * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
35 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
36 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
37 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
41 char const ao_strs_strtable[6633] =
44 /* 12 */ "auto-options\0"
46 /* 33 */ "%%-%ds %%s\n\0"
53 /* 75 */ "--%2$s%1$s\0"
56 /* 96 */ "# preset/initialization file\n"
58 /* 134 */ " %3s %-14s %s\0"
74 /* 203 */ "\t\t\t\t- \0"
75 /* 210 */ "\t\t\t\t \0"
76 /* 217 */ "\t\t\t\t-- and \0"
77 /* 229 */ "\t\t\t\t%s\n\0"
85 /* 267 */ "%s_%s_%d=\0"
97 /* 356 */ "INVALID-%d\0"
98 /* 367 */ "*INVALID*\0"
100 /* 382 */ " --* )\n\0"
102 /* 396 */ "LONGUSAGE\0"
106 /* 433 */ "<%s type=nested>\n\0"
110 /* 461 */ "OPT_ARG_NEEDED=NO\0"
111 /* 479 */ "<%s/>\n\0"
112 /* 486 */ "OPT_ARG_NEEDED=OK\0"
122 /* 554 */ " puts(_(%s));\n\0"
126 /* 585 */ "%s_%s_TEXT='\0"
127 /* 598 */ "#! %s\n\0"
129 "env | grep '^%s_'\n\0"
130 /* 625 */ "=%1$lu # 0x%1$lX\n\0"
132 /* 650 */ "%A %B %e, %Y at %r %Z\0"
133 /* 672 */ "%s/use-%u.XXXXXX\0"
135 /* 694 */ "<%s type=%s>\0"
136 /* 707 */ "VERSION\0"
137 /* 715 */ "#x%02X;\0"
138 /* 723 */ "OPT_ARG_NEEDED=YES\0"
144 /* 774 */ " ;;\n\n\0"
145 /* 791 */ " '%c' )\n\0"
146 /* 807 */ " '%s' )\n\0"
147 /* 823 */ " '%s' | \\\n\0"
150 /* 853 */ "%1$s %2$s ; rm -f %2$s\0"
151 /* 876 */ "<%1$s type=boolean>%2$s</%1$s>\n\0"
152 /* 908 */ "# From the %s option definitions\n"
154 /* 945 */ "echo 'Warning: Cannot load options files' >&2\0"
155 /* 992 */ "echo 'Warning: Cannot save options files' >&2\0"
156 /* 1039 */ "echo 'Warning: Cannot suppress the loading of options files' >&2\0"
157 /* 1105 */ "<%1$s type=integer>0x%2$lX</%1$s>\n\0"
158 /* 1140 */ "%1$s_%2$s_TEXT='no %2$s text'\n\0"
159 /* 1171 */ "%1$s_%2$s_MODE='%3$s'\n"
160 "export %1$s_%2$s_MODE\n\0"
161 /* 1216 */ "%1$s_%2$s='%3$s'\n"
162 "export %1$s_%2$s\n\0"
163 /* 1251 */ "%1$s_%2$s_CT=%3$d\n"
164 "export %1$s_%2$s_CT\n\0"
165 /* 1290 */ "OPTION_CT=%d\n"
166 "export OPTION_CT\n\0"
167 /* 1321 */ "%1$s_%2$s=%3$s\n"
168 "export %1$s_%2$s\n\0"
169 /* 1354 */ "%1$s_%2$s=%3$d # 0x%3$X\n"
170 "export %1$s_%2$s\n\0"
171 /* 1396 */ " case \"${OPT_CODE}\" in\n\0"
172 /* 1427 */ " if [ $%1$s_%2$s_CT -gt %3$u ] ; then\n"
173 " echo 'Error: more than %3$d %2$s options'\n"
174 " echo \"$%1$s_USAGE_TEXT\"\n"
177 /* 1618 */ "test ${%1$s_%2$s_CT-0} -ge %3$u || {\n"
178 " echo %1$s_%2$s has not been set\n"
181 /* 1710 */ "test -n \"$%1$s_%2$s\" || {\n"
182 " echo %1$s_%2$s has not been set\n"
185 /* 1791 */ " echo \"$%s_%s_TEXT\"\n"
188 "# # # # # # # # # #\n"
190 "# END OF AUTOMATED OPTION PROCESSING\n"
192 "# # # # # # # # # # -- do not modify this marker --\n\0"
193 /* 1958 */ " if [ -n \"${OPT_ARG_VAL}\" ]\n"
195 " eval %1$s_${OPT_NAME}${OPT_ELEMENT}=\"'${OPT_ARG_VAL}'\"\n"
196 " export %1$s_${OPT_NAME}${OPT_ELEMENT}\n"
199 "OPTION_COUNT=`expr $ARG_COUNT - $#`\n"
201 "unset OPT_PROCESS || :\n"
202 "unset OPT_ELEMENT || :\n"
203 "unset OPT_ARG || :\n"
204 "unset OPT_ARG_NEEDED || :\n"
205 "unset OPT_NAME || :\n"
206 "unset OPT_CODE || :\n"
207 "unset OPT_ARG_VAL || :\n\0"
208 /* 2337 */ " OPT_CODE=`echo \"X${OPT_ARG}\"|sed 's/^X-*//'`\n"
211 " case \"${OPT_CODE}\" in *=* )\n"
212 " OPT_ARG_VAL=`echo \"${OPT_CODE}\"|sed 's/^[^=]*=//'`\n"
213 " OPT_CODE=`echo \"${OPT_CODE}\"|sed 's/=.*$//'` ;; esac\n\0"
214 /* 2588 */ " OPT_CODE=`echo \"X${OPT_ARG}\" | sed 's/X-\\(.\\).*/\\1/'`\n"
215 " OPT_ARG=` echo \"X${OPT_ARG}\" | sed 's/X-.//'`\n\0"
220 "while ${OPT_PROCESS} && [ $# -gt 0 ]\n"
223 " OPT_ARG_VAL=''\n\n"
224 " case \"${OPT_ARG}\" in\n"
226 " OPT_PROCESS=false\n"
229 /* 2912 */ " case \"${OPT_ARG_NEEDED}\" in\n"
234 " if [ -z \"${OPT_ARG_VAL}\" ]\n"
238 " echo No argument provided for ${OPT_NAME} option\n"
239 " echo \"$%s_USAGE_TEXT\"\n"
242 " OPT_ARG_VAL=${OPT_ARG}\n"
248 " if [ -z \"${OPT_ARG_VAL}\" ] && [ $# -gt 0 ]\n"
250 " case \"${OPT_ARG}\" in -* ) ;; * )\n"
251 " OPT_ARG_VAL=${OPT_ARG}\n"
253 " OPT_ARG=$1 ;; esac\n"
257 /* 3691 */ " %1$s_%2$s_CT=`expr ${%1$s_%2$s_CT} + 1`\n"
258 " OPT_ELEMENT=\"_${%1$s_%2$s_CT}\"\n"
259 " OPT_NAME='%2$s'\n\0"
261 "if test -z \"${%1$s_%2$s}\"\n"
264 " export %1$s_%2$s_CT\n"
267 " %1$s_%2$s_1=${%1$s_%2$s}\n"
268 " export %1$s_%2$s_CT %1$s_%2$s_1\n"
271 " OPT_PROCESS=false\n"
274 /* 4030 */ " %1$s_%2$s_CT=0\n"
276 " %1$s_%2$s='%3$s'\n"
277 " export %1$s_%2$s\n"
278 " OPT_NAME='%2$s'\n\0"
279 /* 4171 */ " if [ -n \"${%1$s_%2$s}\" ] && ${%1$s_%2$s_set} ; then\n"
280 " echo 'Error: duplicate %2$s option'\n"
281 " echo \"$%1$s_USAGE_TEXT\"\n"
284 " %1$s_%2$s_set=true\n"
285 " %1$s_%2$s='%3$s'\n"
286 " export %1$s_%2$s\n"
287 " OPT_NAME='%2$s'\n\0"
291 "while [ $# -gt 0 ]\n"
296 /* 4591 */ " case \"${OPT_ARG_NEEDED}\" in\n"
298 " if [ -n \"${OPT_ARG}\" ]\n"
300 " OPT_ARG=-${OPT_ARG}\n"
307 " if [ -n \"${OPT_ARG}\" ]\n"
309 " OPT_ARG_VAL=${OPT_ARG}\n"
313 " echo No argument provided for ${OPT_NAME} option\n"
314 " echo \"$%s_USAGE_TEXT\"\n"
324 " if [ -n \"${OPT_ARG}\" ]\n"
326 " OPT_ARG_VAL=${OPT_ARG}\n"
333 " case \"$1\" in -* ) ;; * )\n"
341 /* 5745 */ " echo \"$%s_LONGUSAGE_TEXT\" | ${PAGER-more}\n"
343 /* 5819 */ "%s OF %s\n"
345 "# From here to the next `-- do not modify this marker --',\n"
346 "# the text has been generated %s\n\0"
347 /* 5925 */ " eval %1$s_%2$s${OPT_ELEMENT}=true\n"
348 " export %1$s_%2$s${OPT_ELEMENT}\n\0"
349 /* 6015 */ " if [ -n \"${%1$s_%2$s}\" ] && ${%1$s_%2$s_set} ; then\n"
350 " echo 'Error: duplicate %2$s option'\n"
351 " echo \"$%1$s_USAGE_TEXT\"\n"
354 " %1$s_%2$s_set=true\n"
355 " OPT_NAME='%2$s'\n\0"
357 "%1$s_%2$s=${%1$s_%2$s-'%3$s'}\n"
358 "%1$s_%2$s_set=false\n"
359 "export %1$s_%2$s\n\0"
361 "%1$s_%2$s=${%1$s_%2$s}\n"
362 "%1$s_%2$s_set=false\n"
363 "export %1$s_%2$s\n\0"
364 /* 6405 */ "# # # # # # # # # # -- do not modify this marker --\n"
366 "# DO NOT EDIT THIS SECTION\n\0"
368 " echo Unknown %s: \"${OPT_CODE}\" >&2\n"
369 " echo \"$%s_USAGE_TEXT\" >&2\n"
374 /* end of ao-strs.c */