2 # Does the same thing as `marshal-genstrings.pl` and the 'gmarshal.strings'
3 # target in Makefile.am
8 prefix
= '"g_cclosure_marshal_'
11 if len(sys
.argv
) != 3:
12 print('Usage: {0} <input> <output>'.format(sys
.argv
[0]))
14 fin
= open(sys
.argv
[1], 'r')
15 fout
= open(sys
.argv
[2], 'w')
18 if not line
[0].isalpha():
20 symbol
= line
[:-1].replace(':', '__').replace(',', '_')
21 fout
.write(prefix
+ symbol
+ suffix
)