mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-09 20:35:49 +01:00
mkenums: Some arguments can be used multiple times
Some of the arguments that affect the generated result in glib-mkenums can be used multiple times, to avoid embedding unnecessary newlines in their values. This change fixes the NetworkManager build.
This commit is contained in:
parent
d19f53a767
commit
af4a6457eb
@ -237,19 +237,19 @@ parser.add_argument('--identifier-prefix', default='', dest='idprefix',
|
|||||||
help='Identifier prefix')
|
help='Identifier prefix')
|
||||||
parser.add_argument('--symbol-prefix', default='', dest='symprefix',
|
parser.add_argument('--symbol-prefix', default='', dest='symprefix',
|
||||||
help='symbol-prefix')
|
help='symbol-prefix')
|
||||||
parser.add_argument('--fhead', default='', dest='fhead',
|
parser.add_argument('--fhead', default=[], dest='fhead', action='append',
|
||||||
help='Output file header')
|
help='Output file header')
|
||||||
parser.add_argument('--ftail', default='', dest='ftail',
|
parser.add_argument('--ftail', default=[], dest='ftail', action='append',
|
||||||
help='Per input file production')
|
help='Per input file production')
|
||||||
parser.add_argument('--fprod', default='', dest='fprod',
|
parser.add_argument('--fprod', default=[], dest='fprod', action='append',
|
||||||
help='Put out TEXT everytime a new input file is being processed.')
|
help='Put out TEXT everytime a new input file is being processed.')
|
||||||
parser.add_argument('--eprod', default='', dest='eprod',
|
parser.add_argument('--eprod', default=[], dest='eprod', action='append',
|
||||||
help='Per enum text (produced prior to value iterations)')
|
help='Per enum text (produced prior to value iterations)')
|
||||||
parser.add_argument('--vhead', default='', dest='vhead',
|
parser.add_argument('--vhead', default=[], dest='vhead', action='append',
|
||||||
help='Value header, produced before iterating over enum values')
|
help='Value header, produced before iterating over enum values')
|
||||||
parser.add_argument('--vprod', default='', dest='vprod',
|
parser.add_argument('--vprod', default=[], dest='vprod', action='append',
|
||||||
help='Value text, produced for each enum value.')
|
help='Value text, produced for each enum value.')
|
||||||
parser.add_argument('--vtail', default='', dest='vtail',
|
parser.add_argument('--vtail', default=[], dest='vtail', action='append',
|
||||||
help='Value tail, produced after iterating over enum values')
|
help='Value tail, produced after iterating over enum values')
|
||||||
parser.add_argument('--comments', default='', dest='comment_tmpl',
|
parser.add_argument('--comments', default='', dest='comment_tmpl',
|
||||||
help='Comment structure')
|
help='Comment structure')
|
||||||
@ -275,12 +275,12 @@ def unescape_cmdline_args(arg):
|
|||||||
|
|
||||||
idprefix += options.idprefix
|
idprefix += options.idprefix
|
||||||
symprefix += options.symprefix
|
symprefix += options.symprefix
|
||||||
fhead += unescape_cmdline_args(options.fhead)
|
fhead += ''.join([unescape_cmdline_args(x) for x in options.fhead])
|
||||||
ftail += unescape_cmdline_args(options.ftail)
|
ftail += ''.join([unescape_cmdline_args(x) for x in options.ftail])
|
||||||
eprod += unescape_cmdline_args(options.eprod)
|
eprod += ''.join([unescape_cmdline_args(x) for x in options.eprod])
|
||||||
vhead += unescape_cmdline_args(options.vhead)
|
vhead += ''.join([unescape_cmdline_args(x) for x in options.vhead])
|
||||||
vprod += unescape_cmdline_args(options.vprod)
|
vprod += ''.join([unescape_cmdline_args(x) for x in options.vprod])
|
||||||
vtail += unescape_cmdline_args(options.vtail)
|
vtail += ''.join([unescape_cmdline_args(x) for x in options.vtail])
|
||||||
if options.comment_tmpl != '':
|
if options.comment_tmpl != '':
|
||||||
comment_tmpl = unescape_cmdline_args(options.comment_tmpl)
|
comment_tmpl = unescape_cmdline_args(options.comment_tmpl)
|
||||||
output = options.output
|
output = options.output
|
||||||
|
Loading…
x
Reference in New Issue
Block a user