xml2ag(1)
xml2ag(1) π
okay bestie, gather round, because this one is literally the XML β AutoGen Definition Converter and it's a whole vibe. it lives in the User Commands section of your manual, and no cap, it does exactly one job and does it iconically.
β¨ SYNOPSIS β¨
xml2ag [-flags] [-flag [value]] [--option-name[[=| ]value]] [ <def-file> ]
This program will convert any arbitrary XML file into equivalent AutoGen definitions, and invoke AutoGen. π¦
πΈ DESCRIPTION πΈ
so here's the tea. the template gets derived from one of these two things, and you're picking:
- the
--override-tplcommand line option - a top level XML attribute named,
"template"
One or the other must be provided, or the program will exit with a failure message. no template, no party. π
The βbase-nameβ for the output will similarly be either:
- the
--base-namecommand line option - the base name of the
.xmlfile
π OPTIONS π
All other options are derived from autogen
-O file,--output=fileβ output file in lieu of AutoGen processing.
By default, the output is handed to an AutoGen for processing. However, you may save the definitions to a file instead. π
All other options
These options are mostly just passed throug to autogen. The one exception is --override-tpl which replaces the default template in the output definitions. It does not get passed through on the command line. (iykyk π)
-L dir,--templ-dirs=dirβ Search for templates in DIR. This option may appear an unlimited number of times.
Pass-through AutoGen argument β¨
-T tpl-file,--override-tpl=tpl-fileβ Use TPL-FILE for the template.
Pass-through AutoGen argument β¨
--definitions=fileβ Read definitions from FILE.
Pass-through AutoGen argument β¨
--shell=shellβ name or path name of shell to use.
Pass-through AutoGen argument β¨
-m,--no-fmemopenβ Do not use in-mem streams.
Pass-through AutoGen argument β¨
--equate=char-listβ characters considered equivalent.
Pass-through AutoGen argument β¨
-b name,--base-name=nameβ Specify NAME as the base name for output.
Pass-through AutoGen argument β¨
--source-timeβ set mod times to latest source.
Pass-through AutoGen argument β¨
--writable,--not-writableβ Allow output files to be writable. Thenot-writableform will disable the option.
Pass-through AutoGen argument β¨
--loop-limit=limβ Limit on increment loops. This option takes an integer number as its argument. The value of lim is constrained to being:- exactly
-1, or - in the range
1through0x1000000
- exactly
The default lim for this option is:
256
Pass-through AutoGen argument β¨
-t seconds,--timeout=secondsβ Limit server shell operations to SECONDS. This option takes an integer number as its argument. The value of seconds is constrained to being:- in the range
0through3600
- in the range
Pass-through AutoGen argument β¨
--trace=levelβ tracing level of detail. This option takes a keyword as its argument. The argument sets an enumeration value that can be tested by comparing them against the option value macro. The available keywords are:
nothing debug-message server-shell
templates block-macros expressions
everything
or their numeric equivalent.
The default level for this option is:
nothing
Pass-through AutoGen argument β¨
--trace-out=fileβ tracing output file or filter.
Pass-through AutoGen argument β¨
--show-defsβ Show the definition tree.
Pass-through AutoGen argument β¨
--used-definesβ Show the definitions used.
Pass-through AutoGen argument β¨
-C,--coreβ Leave a core dump on a failure exit.
Many systems default to a zero sized core limit. If the system has the sys/resource.h header and if this option is supplied, then in the failure exit path, autogen will attempt to set the soft core limit to whatever the hard core limit is. If that does not work, then an administrator must raise the hard core size limit.
-s suffix,--skip-suffix=suffixβ Skip the file with this SUFFIX. This option may appear an unlimited number of times. This option must not appear in combination with any of the following options:select-suffix.
Pass-through AutoGen argument β¨
-o suffix,--select-suffix=suffixβ specify this output suffix. This option may appear an unlimited number of times.
Pass-through AutoGen argument β¨
-D value,--define=valueβ name to add to definition list. This option may appear an unlimited number of times.
Pass-through AutoGen argument β¨
-U name-pat,--undefine=name-patβ definition list removal pattern. This option may appear an unlimited number of times.
Pass-through AutoGen argument β¨
-M type,--make-dep [type]β emit make dependency file. This option may appear an unlimited number of times.
Pass-through AutoGen argument β¨
-?,--helpβ Display usage information and exit.-!,--more-helpβ Pass the extended usage information through a pager.-v [{v|c|n --version [{v|c|n}]}]β Output version of program and exit. The default mode isv, a simple version. Thecmode will print copyright information andnwill print the full copyright notice.
π EXIT STATUS π
One of the following exit values will be returned:
0(EXIT_SUCCESS) β Successful program execution. slay. π1(EXIT_FAILURE) β The operation failed or the command syntax was not valid. π70(EX_SOFTWARE) β libopts had an internal operational error. Please report it toautogen-users@lists.sourceforge.net. Thank you. π
π«Ά AUTHORS π«Ά
Bruce Korb
β COPYRIGHT β
Copyright (C) 1992-2018 Bruce Korb all rights reserved. This program is released under the terms of the GNU General Public License, version 3 or later.
π BUGS π
Please send bug reports to: autogen-users@lists.sourceforge.net
π§ NOTES π§
This manual page was AutoGen-erated from the xml2ag option definitions. (yes, it's giving meta, we love that for us π)
sign-off bestie: this whole page is from GNU AutoGen (5.18.16) and it's dated 2018-08-26. that's the source and the version and the date, all wrapped up with a bow. πβ¨π
π¦ where this page comes from
- debian trixie: autogen 1:5.18.16-7 Β· GPL-3.0-or-later
- nixpkgs unstable: autogen 5.18.16
- ubuntu questing: autogen 1:5.18.16-7build1
- ubuntu resolute: autogen 1:5.18.16-7build2 Β· GPL-3.0-or-later
- ubuntu stonking: autogen 1:5.18.16-9 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms