tools: move generate-gperfs.py to tools/

This commit is contained in:
Yu Watanabe
2018-11-28 20:19:41 +09:00
parent cb3108669d
commit 6ec439fd4b
3 changed files with 2 additions and 2 deletions
-22
View File
@@ -1,22 +0,0 @@
#!/usr/bin/env python3
"""Generate %-from-name.gperf from %-list.txt
"""
import sys
name, prefix, input = sys.argv[1:]
print("""\
%{
#if __GNUC__ >= 7
_Pragma("GCC diagnostic ignored \\"-Wimplicit-fallthrough\\"")
#endif
%}""")
print("""\
struct {}_name {{ const char* name; int id; }};
%null-strings
%%""".format(name))
for line in open(input):
print("{0}, {1}{0}".format(line.rstrip(), prefix))
-2
View File
@@ -179,8 +179,6 @@ basic_sources = files('''
missing_h = files('missing.h')
generate_gperfs = find_program('generate-gperfs.py')
generate_af_list = find_program('generate-af-list.sh')
af_list_txt = custom_target(
'af-list.txt',