2013-03-23 Bruce Korb <bkorb@gnu.org>
* everywhere: file start and end markers.
* add-on/cright-update: updating it.
* autoopts/tpl/lgplv2.lic: new license file
* autoopts/genshell.def: use it
* agen5/autogen.c (done_check): use "exit" not "_exit".
(cleanup_and_abort): likewise
* autoopts/streqvcmp.c (streqvcmp): do not transform character
before having tested for the same character.
(strneqvcmp): likewise
* agen5/mk-stamps.sh: run code generation in parallel
* agen5/test/Makefile.am: use install-defs.sh to make "defs".
* agen5/test/error.test: ban the "Failing Guile command" message
* agen5/tpParse.c (print_indentation): warning patrol
* autoopts/test/defs.in: added uniformity for sedding into place
* config/bootstrap.local: remove some exceptionalism.
* config/install-defs.sh: script for installing "defs" files (new)
* getdefs/test/Makefile.am: use the "defs" file so the tests can
run in parallel
* getdefs/test/*.test: use the "defs" from autoopts testing,
tweaking the sample test output as needed.
* autoopts/usage.c: guard inclusion of <libintl.h> with
defined(ENABLE_NLS) && defined(HAVE_LIBINTL_H)
2013-02-24 Bruce Korb <bkorb@gnu.org>
* */Makefile.am: replace "INCLUDES" with "AM_CPPFLAGS"
* autoopts/usage.c (print_one_paragraph): undefine gettext IFF
DEBUG_ENABLED has been defined. Also, omit the bother of gettext
if ENABLE_NLS has not been defined.
(optionPrintParagraphs): print usage text as a single blob when
ENABLE_NLS is not defined.
* autoopts/test/nls.test: disable the test if DEBUG_ENABLED not defined
* config/libopts.def: add --enable-nls, defaulting to "yes".
2013-02-23 Bruce Korb <bkorb@gnu.org>
5.17.2 release
* agen5/snarf.tpl: support addtogroup doxygen markup
* autoopts/tpl/str2enum.tpl: likewise
* autoopts/tpl/options.tpl: likewise
* autoopts/tpl/optlib.tlib: likewise
* */*opts.def: tag appropriately
* autoopts/genshell.def: lgpl the output
* autoopts/options_h.tpl: get license information from template header
* autoopts/usage-txt.tpl: likewise
* compat/compat.h: dual license the file (GPL + mBSD)
* autoopts/test/nls.test: disable test when we don't have libintl.
* agen5/test/snarf.test: adjust
* agen5/test/str2m.test: exit 0 when gperf not installed
* autoopts/tpl/str2init.tlib: fail-exit when gperf not installed
* autoopts/bootstrap.dir: derive keyword lists from configfile.c
* autoopts/configfile.c: constify some text scanning variables
* autoopts/nested.c (scan_xml_name): remove redundant NULL checks
* autoopts/usage-txt.tpl: redirect "no output" values to /dev/null
2013-02-17 Bruce Korb <bkorb@gnu.org>
* autoopts/tpl/optcode.tlib: correctly locate TRANSLATORS: comment
* autoopts/tpl/optlib.tlib: mark deprecated options
* autoopts/usage.c: use index instead of scanning pointer
2013-02-03 Bruce Korb <bkorb@gnu.org>
* agen5/autogen.c (cleanup_and_abort): call _exit() immediately if
autogen is still in the initialization phase.
(setup_signals): exempt SIGPROF from capture.
* autoopts/options_h.tpl (opt_usage_t): enumeration of AutoOpts
supported options. The "reserved" field of each option structure
is now initialized with this value.
* autoopts/tpl/optcode.tlib: use the enumerated values
* autoopts/usage.c (ao_bug): new function to print a message
and exit EX_SOFTWARE on a libopts bug
(print_offer_usage) new function to show misusers of an interface how
to request help when usage details are not printed.
* autoopts/usage-txt.def: adjust texts
* doc/autogen-texi.txt: describe some of the new workings.
* autoopts/autoopts.c (optionProcess): use ao_bug()
* autoopts/find.c (get_opt_arg_may): likewise
(get_opt_arg): simplify code
* agen5/defDirect.c (processDirective): Correctly handle bad directives
Basically, rework the thing.
* agen5/directive.tpl: remove
* agen5/ag-text.def: remove obsolete strings
* agen5/mk-stamps.sh (top_builddir): add a default for it
(make_directive): use a dispatching enumeration instead of a
special purpose template.
* agen5/autogen.h: doxy-comment some variables
* agen5/opts.def (signal): reassign the exit code to 128.
* agen5/tpLoad.c (load_macs): remove unneeded parameter.
* agen5/tpParse.c (print_indentation) new
(print_ag_defs): also new
(parse_tpl): remove debug printing code to new procedures
2013-01-26 Bruce Korb <bkorb@gnu.org>
* autoopts/alias.c (too_many_occurrences): new function for handling
an option that occurs too many times.
(optionAlias): use it
* autoopts/autoopts.c (handle_opt): also use it
* autoopts/bootstrap.dir (usage-txt.tpl): do not install
* autoopts/ao-strs.def: add all immutable strings, remove translatable
ones
* autoopts/makeshell.c (fserr_warn): new function to emit message
about an error found in errno
(fserr_exit): call fserr_warn() and exit failure
* autoopts/restore.c (optionSaveState): AGALOC aborts on failure,
do not check result for NULL
* autoopts/usage.c (AOFLAG_TABLE): make module global
(parse_usage_flags): broken out of set_usage_flags().
Add code to handle "compute" usage so that the usage code ignores
the full usage and short usage strings.
* autoopts/usage-txt.def: remove all untranslatable strings and
mark libopts messages differently from usage construction strings.
Ensure all error messages include the program name and are made
consistent.
* autoopts/*.c: adjust for these changes
* autoopts/usage-txt.tpl: moved from tpl subdirectory. Removed
accommodation for untranslatable strings
* autoopts/test/cfg-edit.test: adjust
* autoopts/test/enums.test: adjust
* autoopts/test/keyword.test: adjust
2013-01-19 Bruce Korb <bkorb@gnu.org>
* agen5/agShell.c (shell_cmd): add tracing info on server restart
* agen5/expState.c (ag_scm_get): add trace info on failure
* autoopts/init.c (validate_struct): use "field_ct" as the
"has it been translated?" indicator
* autoopts/putshell.c (string_size): migrated from expString.c
(optionQuoteString): a revamp of makeString from expString.c
* autoopts/usage.c (print_one_paragraph) new support function
(optionPrintParagraphs): print a long string a paragraph at a time
* autoopts/ao-strs.def: new strings for optionQuoteString
* agen5/expString.c: remove string_size and makeString functions
(ag_scm_mk_gettextable): new - emit phony functions that xgettext
can use for string extraction.
(ag_scm_kr_string): use new optionQuoteString function
(ag_scm_c_string): likewise
* agen5/ag-text.def: add and remove strings for changes above
* autoopts/tpl/getopt.tpl: fix test environment issues
* autoopts/tpl/optcode.tlib: emit a bogus translation string fn.
Do not put " - Ver. n.n.n" into usage text for gnu-usage.
* autoopts/tpl/options.tpl: set up test environment for finding
the correct columns executable.
* autoopts/tpl/optlib.tlib: removed from here
* autoopts/tpl/usage.tlib: copy needed here, too
* compat/windows-config.h: mark when Windows env has no inttypes.h
* autoopts/tpl/str2enum.tpl: do not include inttypes.h when missing
* autoopts/test/defs.in: improve use of temp directories.
Maybe these can be done in parallel soon...
* autoopts/test/*.test: adjust for changes
* config/bootstrap: omit check for internal "missing" program
* config/missing: deleted
* autoopts/usage-txt.def: prefer apostrophes to back quotes
2013-01-12 Bruce Korb <bkorb@gnu.org>
* everywhere: change md5sums to sha256 sums.
* autoopts/tpl/def2pot.tpl: omit stuff that won't get used.
* autoopts/tpl/optcode.tlib: add a gettext extraction function
that contains the translatable strings.
* autoopts/tpl/optmain.tlib (validate_fname): when processing
a "for-each" main procedure, allow "stdin" to be specified,
but not when reading file names from stdin itself.
* compat/windows-config.h: make sure fixed width integer types
get defined properly on Windows.
* config/bootstrap (filter_autotool_chaff): turn off xtrace
* config/libopts.def (regex): fail-exit if libregex fails
(do-first): if no inttypes.h, then equate it to stdint.h.
* configure.ac: automake does not support AM_CONFIG_HEADER
* doc/autogen-texi.txt: cleanups
2013-01-05 Bruce Korb <bkorb@gnu.org>
5.17.1 release
* autoopts/tpl/mdoc2texi.pl: update from Harlan
* autoopts/tpl/agtexi-file.tpl: likewise
* agen5/defLoad.c (insert_ent): error out on duplicate entry indexes
* agen5/funcFor.c (for_by_step): trace each "FOR" iteration
(for_each): likewise, also emit separation string IFF there is one
(mFunc_For): put the index variable from "for_state" in the
trace entry.
* agen5/test/debug.test: adjust sample output
* autoopts/tpl/optmain.tlib: prefer sysconf(_SC_PAGESIZE) to
getpagesize().
* agen5/fsm.tpl: capture copyright years from header
* agen5/fsm-macro.tlib: insert copyright years into output
* EVERYWHERE: s/2012/2013/
2012-12-30 Bruce Korb <bkorb@gnu.org>
* autoopts/tpl/agman-file.tpl: new template for documenting config
file formats with a man page.
* autoopts/tpl/agmdoc-file.tpl: new template for documenting config
file formats with an mdoc page.
* autoopts/tpl/agtexi-file.tpl: new template for documenting config
file formats for texinfo documentation.
* autoopts/tpl/agtexi-cmd.tpl: use the new doc-sub stuff.
* autoopts/tpl/cmd-doc.tlib: adjustments for section 5 paragraphs.
Defer whatever-to-result_form conversion to the end.
* autoopts/tpl/agman-cmd.tpl: do not convert at insertion time
* autoopts/tpl/agmdoc-cmd.tpl: likewise
* autoopts/tpl/mdoc2texi.pl: update from Harlan
* autoopts/test/doc.test: adjust for template fixes.
* autoopts/test/keyword.test: adjust for template fixes.
* configure.ac: -Wconversion -Wsign-conversion -Wstrict-overflow
do not work.
* snprintfv/compat.h: turn off severe warnings
* agen5/autogen.h: ignore severe warnings in Guile headers
* everywhere: a lot of casting to silence picky warnings
* agen5/defLoad.c (insert_ent): print the address of the def entry
structure in the debug log.
* agen5/test/debug.test: adjust
* agen5/opts.def (doc-sub): use this feature to verify it works
* agen5/test/string.test: fix $LINENO use
* doc/autogen-texi.txt: describe the new stuff
* autoopts/options_h.tpl: Insert a $AO_VERSION.$AO_REVISION string
2012-12-27 Bruce Korb <bkorb@gnu.org>
* agen5/Makefile.am: use mk-stamps.sh in the rule, not bootstrap.dir
* agen5/autogen.h: doxyfy some comments. define LOCAL to static
* agen5/bootstrap.dir: simplify some expressions
* agen5/functions.c (mLoad_Leave): do not mark with LOCAL
* agen5/mk-stamps.sh: fmemopen.3 and autogen.1 use separate rules
* autoopts/tpl/str2init.tlib (CLexe): define it differently for
test and install
* autoopts/tpl/str2enum.tpl: use it
* autoopts/tpl/str2mask.tpl: likewise
* config/bootstrap.shlib (make proto): fix up prototype rule
5.17 release