mkenums: Skip unparsed lines

The old glib-mkenums just skipped lines it could not understand.
This commit is contained in:
Emmanuele Bassi 2017-07-17 16:04:03 +01:00
parent 1e4135f253
commit f18556749c

View File

@ -192,7 +192,7 @@ def parse_entries(file, file_name):
elif re.match(r's*\#', line):
pass
else:
sys.exit("Failed to parse %s." % file_name)
print_warning('Failed to parse "{}" in {}'.format(line, file_name))
return False
help_epilog = '''Production text substitutions: