diff options
Diffstat (limited to 'src/libopts/ao-strs.c')
-rw-r--r-- | src/libopts/ao-strs.c | 139 |
1 files changed, 70 insertions, 69 deletions
diff --git a/src/libopts/ao-strs.c b/src/libopts/ao-strs.c index c385a4d340..514eedc43d 100644 --- a/src/libopts/ao-strs.c +++ b/src/libopts/ao-strs.c @@ -6,7 +6,7 @@ * From the definitions ao-strs.def * and the template file strings * - * Copyright (C) 2011-2014 Bruce Korb, all rights reserved. + * Copyright (C) 2011-2015 Bruce Korb, all rights reserved. * This is free software. It is licensed for use, modification and * redistribution under the terms of the * Modified (3 clause) Berkeley Software Distribution License @@ -38,7 +38,7 @@ */ #include "ao-strs.h" -char const ao_strs_strtable[6633] = +char const ao_strs_strtable[6670] = /* 0 */ "-_^\0" /* 4 */ " %s%s\n\0" /* 12 */ "auto-options\0" @@ -118,79 +118,80 @@ char const ao_strs_strtable[6633] = /* 533 */ "%s_%s=\0" /* 540 */ " | \0" /* 544 */ "PAGER\0" -/* 550 */ " + \0" -/* 554 */ " puts(_(%s));\n\0" -/* 570 */ "\\'\0" -/* 573 */ "'%s'\0" -/* 578 */ " -- %s\0" -/* 585 */ "%s_%s_TEXT='\0" -/* 598 */ "#! %s\n\0" -/* 605 */ "\n" +/* 550 */ "%1$s %2$s ; rm -f %2$s\0" +/* 573 */ " + \0" +/* 577 */ " puts(_(%s));\n\0" +/* 593 */ "\\'\0" +/* 596 */ "'%s'\0" +/* 601 */ " -- %s\0" +/* 608 */ "%s_%s_TEXT='\0" +/* 621 */ "#! %s\n\0" +/* 628 */ "\n" "env | grep '^%s_'\n\0" -/* 625 */ "=%1$lu # 0x%1$lX\n\0" -/* 643 */ "stdout\0" -/* 650 */ "%A %B %e, %Y at %r %Z\0" -/* 672 */ "%s/use-%u.XXXXXX\0" -/* 689 */ "true\0" -/* 694 */ "<%s type=%s>\0" -/* 707 */ "VERSION\0" -/* 715 */ "#x%02X;\0" -/* 723 */ "OPT_ARG_NEEDED=YES\0" -/* 742 */ "'\\''\0" -/* 747 */ " '%s'\0" -/* 753 */ "\n" +/* 648 */ "=%1$lu # 0x%1$lX\n\0" +/* 666 */ "stdout\0" +/* 673 */ "%A %B %e, %Y at %r %Z\0" +/* 695 */ "TMPDIR\0" +/* 702 */ "%s/use-%u.XXXXXX\0" +/* 719 */ "true\0" +/* 724 */ "<%s type=%s>\0" +/* 737 */ "VERSION\0" +/* 745 */ "#x%02X;\0" +/* 753 */ "OPT_ARG_NEEDED=YES\0" +/* 772 */ "'\\''\0" +/* 777 */ " '%s'\0" +/* 783 */ "libopts misguessed length of string\n\0" +/* 820 */ "\n" "OPTION_CT=0\n\0" -/* 767 */ "set --\0" -/* 774 */ " ;;\n\n\0" -/* 791 */ " '%c' )\n\0" -/* 807 */ " '%s' )\n\0" -/* 823 */ " '%s' | \\\n\0" -/* 841 */ "TMPDIR\0" -/* 848 */ "/tmp\0" -/* 853 */ "%1$s %2$s ; rm -f %2$s\0" -/* 876 */ "<%1$s type=boolean>%2$s</%1$s>\n\0" -/* 908 */ "# From the %s option definitions\n" +/* 834 */ "set --\0" +/* 841 */ "/tmp\0" +/* 846 */ " ;;\n\n\0" +/* 863 */ " '%c' )\n\0" +/* 879 */ " '%s' )\n\0" +/* 895 */ " '%s' | \\\n\0" +/* 913 */ "<%1$s type=boolean>%2$s</%1$s>\n\0" +/* 945 */ "# From the %s option definitions\n" "#\n\0" -/* 945 */ "echo 'Warning: Cannot load options files' >&2\0" -/* 992 */ "echo 'Warning: Cannot save options files' >&2\0" -/* 1039 */ "echo 'Warning: Cannot suppress the loading of options files' >&2\0" -/* 1105 */ "<%1$s type=integer>0x%2$lX</%1$s>\n\0" -/* 1140 */ "%1$s_%2$s_TEXT='no %2$s text'\n\0" -/* 1171 */ "%1$s_%2$s_MODE='%3$s'\n" +/* 982 */ "echo 'Warning: Cannot load options files' >&2\0" +/* 1029 */ "echo 'Warning: Cannot save options files' >&2\0" +/* 1076 */ "echo 'Warning: Cannot suppress the loading of options files' >&2\0" +/* 1142 */ "<%1$s type=integer>0x%2$lX</%1$s>\n\0" +/* 1177 */ "%1$s_%2$s_TEXT='no %2$s text'\n\0" +/* 1208 */ "%1$s_%2$s_MODE='%3$s'\n" "export %1$s_%2$s_MODE\n\0" -/* 1216 */ "%1$s_%2$s='%3$s'\n" +/* 1253 */ "%1$s_%2$s='%3$s'\n" "export %1$s_%2$s\n\0" -/* 1251 */ "%1$s_%2$s_CT=%3$d\n" +/* 1288 */ "%1$s_%2$s_CT=%3$d\n" "export %1$s_%2$s_CT\n\0" -/* 1290 */ "OPTION_CT=%d\n" +/* 1327 */ "OPTION_CT=%d\n" "export OPTION_CT\n\0" -/* 1321 */ "%1$s_%2$s=%3$s\n" +/* 1358 */ "%1$s_%2$s=%3$s\n" "export %1$s_%2$s\n\0" -/* 1354 */ "%1$s_%2$s=%3$d # 0x%3$X\n" +/* 1391 */ "%1$s_%2$s=%3$d # 0x%3$X\n" "export %1$s_%2$s\n\0" -/* 1396 */ " case \"${OPT_CODE}\" in\n\0" -/* 1427 */ " if [ $%1$s_%2$s_CT -gt %3$u ] ; then\n" +/* 1433 */ " case \"${OPT_CODE}\" in\n\0" +/* 1464 */ " if [ $%1$s_%2$s_CT -gt %3$u ] ; then\n" " echo 'Error: more than %3$d %2$s options'\n" " echo \"$%1$s_USAGE_TEXT\"\n" " exit 1\n" " fi >&2\n\0" -/* 1618 */ "test ${%1$s_%2$s_CT-0} -ge %3$u || {\n" +/* 1655 */ "test ${%1$s_%2$s_CT-0} -ge %3$u || {\n" " echo %1$s_%2$s has not been set\n" " exit 1\n" "} 1>&2\n\0" -/* 1710 */ "test -n \"$%1$s_%2$s\" || {\n" +/* 1747 */ "test -n \"$%1$s_%2$s\" || {\n" " echo %1$s_%2$s has not been set\n" " exit 1\n" "} 1>&2\n\0" -/* 1791 */ " echo \"$%s_%s_TEXT\"\n" +/* 1828 */ " echo \"$%s_%s_TEXT\"\n" " exit 0\n\0" -/* 1842 */ "\n" +/* 1879 */ "\n" "# # # # # # # # # #\n" "#\n" "# END OF AUTOMATED OPTION PROCESSING\n" "#\n" "# # # # # # # # # # -- do not modify this marker --\n\0" -/* 1958 */ " if [ -n \"${OPT_ARG_VAL}\" ]\n" +/* 1995 */ " if [ -n \"${OPT_ARG_VAL}\" ]\n" " then\n" " eval %1$s_${OPT_NAME}${OPT_ELEMENT}=\"'${OPT_ARG_VAL}'\"\n" " export %1$s_${OPT_NAME}${OPT_ELEMENT}\n" @@ -205,15 +206,15 @@ char const ao_strs_strtable[6633] = "unset OPT_NAME || :\n" "unset OPT_CODE || :\n" "unset OPT_ARG_VAL || :\n\0" -/* 2337 */ " OPT_CODE=`echo \"X${OPT_ARG}\"|sed 's/^X-*//'`\n" +/* 2374 */ " OPT_CODE=`echo \"X${OPT_ARG}\"|sed 's/^X-*//'`\n" " shift\n" " OPT_ARG=$1\n" " case \"${OPT_CODE}\" in *=* )\n" " OPT_ARG_VAL=`echo \"${OPT_CODE}\"|sed 's/^[^=]*=//'`\n" " OPT_CODE=`echo \"${OPT_CODE}\"|sed 's/=.*$//'` ;; esac\n\0" -/* 2588 */ " OPT_CODE=`echo \"X${OPT_ARG}\" | sed 's/X-\\(.\\).*/\\1/'`\n" +/* 2625 */ " OPT_CODE=`echo \"X${OPT_ARG}\" | sed 's/X-\\(.\\).*/\\1/'`\n" " OPT_ARG=` echo \"X${OPT_ARG}\" | sed 's/X-.//'`\n\0" -/* 2705 */ "\n" +/* 2742 */ "\n" "ARG_COUNT=$#\n" "OPT_PROCESS=true\n" "OPT_ARG=$1\n" @@ -226,7 +227,7 @@ char const ao_strs_strtable[6633] = " OPT_PROCESS=false\n" " shift\n" " ;;\n\0" -/* 2912 */ " case \"${OPT_ARG_NEEDED}\" in\n" +/* 2949 */ " case \"${OPT_ARG_NEEDED}\" in\n" " NO )\n" " OPT_ARG_VAL=''\n" " ;;\n" @@ -254,10 +255,10 @@ char const ao_strs_strtable[6633] = " fi\n" " ;;\n" " esac\n\0" -/* 3691 */ " %1$s_%2$s_CT=`expr ${%1$s_%2$s_CT} + 1`\n" +/* 3728 */ " %1$s_%2$s_CT=`expr ${%1$s_%2$s_CT} + 1`\n" " OPT_ELEMENT=\"_${%1$s_%2$s_CT}\"\n" " OPT_NAME='%2$s'\n\0" -/* 3815 */ "\n" +/* 3852 */ "\n" "if test -z \"${%1$s_%2$s}\"\n" "then\n" " %1$s_%2$s_CT=0\n" @@ -267,16 +268,16 @@ char const ao_strs_strtable[6633] = " %1$s_%2$s_1=${%1$s_%2$s}\n" " export %1$s_%2$s_CT %1$s_%2$s_1\n" "fi\n\0" -/* 3973 */ " * )\n" +/* 4010 */ " * )\n" " OPT_PROCESS=false\n" " ;;\n" " esac\n\0" -/* 4030 */ " %1$s_%2$s_CT=0\n" +/* 4067 */ " %1$s_%2$s_CT=0\n" " OPT_ELEMENT=''\n" " %1$s_%2$s='%3$s'\n" " export %1$s_%2$s\n" " OPT_NAME='%2$s'\n\0" -/* 4171 */ " if [ -n \"${%1$s_%2$s}\" ] && ${%1$s_%2$s_set} ; then\n" +/* 4208 */ " if [ -n \"${%1$s_%2$s}\" ] && ${%1$s_%2$s_set} ; then\n" " echo 'Error: duplicate %2$s option'\n" " echo \"$%1$s_USAGE_TEXT\"\n" " exit 1\n" @@ -285,7 +286,7 @@ char const ao_strs_strtable[6633] = " %1$s_%2$s='%3$s'\n" " export %1$s_%2$s\n" " OPT_NAME='%2$s'\n\0" -/* 4488 */ "\n" +/* 4525 */ "\n" "ARG_COUNT=$#\n" "OPT_ARG=$1\n" "while [ $# -gt 0 ]\n" @@ -293,7 +294,7 @@ char const ao_strs_strtable[6633] = " OPT_ELEMENT=''\n" " OPT_ARG_VAL=''\n" " OPT_ARG=${1}\n\0" -/* 4591 */ " case \"${OPT_ARG_NEEDED}\" in\n" +/* 4628 */ " case \"${OPT_ARG_NEEDED}\" in\n" " NO )\n" " if [ -n \"${OPT_ARG}\" ]\n" " then\n" @@ -338,33 +339,33 @@ char const ao_strs_strtable[6633] = " fi\n" " ;;\n" " esac\n\0" -/* 5745 */ " echo \"$%s_LONGUSAGE_TEXT\" | ${PAGER-more}\n" +/* 5782 */ " echo \"$%s_LONGUSAGE_TEXT\" | ${PAGER-more}\n" " exit 0\n\0" -/* 5819 */ "%s OF %s\n" +/* 5856 */ "%s OF %s\n" "#\n" "# From here to the next `-- do not modify this marker --',\n" "# the text has been generated %s\n\0" -/* 5925 */ " eval %1$s_%2$s${OPT_ELEMENT}=true\n" +/* 5962 */ " eval %1$s_%2$s${OPT_ELEMENT}=true\n" " export %1$s_%2$s${OPT_ELEMENT}\n\0" -/* 6015 */ " if [ -n \"${%1$s_%2$s}\" ] && ${%1$s_%2$s_set} ; then\n" +/* 6052 */ " if [ -n \"${%1$s_%2$s}\" ] && ${%1$s_%2$s_set} ; then\n" " echo 'Error: duplicate %2$s option'\n" " echo \"$%1$s_USAGE_TEXT\"\n" " exit 1\n" " fi >&2\n" " %1$s_%2$s_set=true\n" " OPT_NAME='%2$s'\n\0" -/* 6274 */ "\n" +/* 6311 */ "\n" "%1$s_%2$s=${%1$s_%2$s-'%3$s'}\n" "%1$s_%2$s_set=false\n" "export %1$s_%2$s\n\0" -/* 6343 */ "\n" +/* 6380 */ "\n" "%1$s_%2$s=${%1$s_%2$s}\n" "%1$s_%2$s_set=false\n" "export %1$s_%2$s\n\0" -/* 6405 */ "# # # # # # # # # # -- do not modify this marker --\n" +/* 6442 */ "# # # # # # # # # # -- do not modify this marker --\n" "#\n" "# DO NOT EDIT THIS SECTION\n\0" -/* 6488 */ " * )\n" +/* 6525 */ " * )\n" " echo Unknown %s: \"${OPT_CODE}\" >&2\n" " echo \"$%s_USAGE_TEXT\" >&2\n" " exit 1\n" |