mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-27 06:26:15 +01:00
glib-mkenums: unescape \n etc. in command line arguments
Fixes generation of GStreamer enumtype files with autotools build. https://bugzilla.gnome.org/show_bug.cgi?id=779332
This commit is contained in:
parent
a882c974d3
commit
8451f0b817
@ -268,16 +268,21 @@ if options.version:
|
|||||||
if options.template != '':
|
if options.template != '':
|
||||||
read_template_file(options.template)
|
read_template_file(options.template)
|
||||||
|
|
||||||
|
def unescape_cmdline_args(arg):
|
||||||
|
arg = arg.replace('\\n', '\n')
|
||||||
|
arg = arg.replace('\\r', '\r')
|
||||||
|
return arg.replace('\\t', '\t')
|
||||||
|
|
||||||
idprefix += options.idprefix
|
idprefix += options.idprefix
|
||||||
symprefix += options.symprefix
|
symprefix += options.symprefix
|
||||||
fhead += options.fhead
|
fhead += unescape_cmdline_args(options.fhead)
|
||||||
ftail += options.ftail
|
ftail += unescape_cmdline_args(options.ftail)
|
||||||
eprod += options.eprod
|
eprod += unescape_cmdline_args(options.eprod)
|
||||||
vhead += options.vhead
|
vhead += unescape_cmdline_args(options.vhead)
|
||||||
vprod += options.vprod
|
vprod += unescape_cmdline_args(options.vprod)
|
||||||
vtail += options.vtail
|
vtail += unescape_cmdline_args(options.vtail)
|
||||||
if options.comment_tmpl != '':
|
if options.comment_tmpl != '':
|
||||||
comment_tmpl = options.comment_tmpl
|
comment_tmpl = unescape_cmdline_args(options.comment_tmpl)
|
||||||
output = options.output
|
output = options.output
|
||||||
|
|
||||||
if output is not None:
|
if output is not None:
|
||||||
|
Loading…
Reference in New Issue
Block a user