diff options
Diffstat (limited to 'libc/tools/genversion-scripts.py')
-rwxr-xr-x | libc/tools/genversion-scripts.py | 37 |
1 files changed, 14 insertions, 23 deletions
diff --git a/libc/tools/genversion-scripts.py b/libc/tools/genversion-scripts.py index 53f4db4d5..0a98994f1 100755 --- a/libc/tools/genversion-scripts.py +++ b/libc/tools/genversion-scripts.py @@ -37,8 +37,6 @@ def has_arch_tags(tags): for arch in all_arches: if arch in tags: return True - if 'nobrillo' in tags: - return True return False @@ -49,28 +47,21 @@ class VersionScriptGenerator(object): basename = os.path.basename(script) dirname = os.path.dirname(script) for arch in all_arches: - for brillo in [False, True]: - has_nobrillo = False - name = basename.split(".")[0] + "." + arch + (".brillo" if brillo else "") + ".map" - tmp_path = os.path.join(bionic_temp, name) - dest_path = os.path.join(dirname, name) - with open(tmp_path, "w") as fout: - with open(script, "r") as fin: - fout.write("# %s\n" % warning) - for line in fin: - index = line.find("#") - if index != -1: - tags = line[index+1:].split() - if arch not in tags and has_arch_tags(tags): - continue - if brillo and "nobrillo" in tags: - has_nobrillo = True - continue - fout.write(line) - if not brillo or has_nobrillo: - shutil.copyfile(tmp_path, dest_path) + name = basename.split(".")[0] + "." + arch + ".map" + tmp_path = os.path.join(bionic_temp, name) + dest_path = os.path.join(dirname, name) + with open(tmp_path, "w") as fout: + with open(script, "r") as fin: + fout.write("# %s\n" % warning) + for line in fin: + index = line.find("#") + if index != -1: + tags = line[index+1:].split() + if arch not in tags and has_arch_tags(tags): + continue + fout.write(line) + shutil.copyfile(tmp_path, dest_path) generator = VersionScriptGenerator() generator.run() - |