tools: move generate-gperfs.py to tools/
This commit is contained in:
@@ -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))
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user