Sorting lexicographically languages in languages.hpp. Script change.

This commit is contained in:
Vladimir Byko-Ianko 2015-10-26 16:38:31 +03:00
parent c80de1dbf8
commit a089ee9fc7

View file

@ -54,6 +54,7 @@ def make_languages_hpp(langs_name, hpp_name):
print ("Creating {fine_name}".format(fine_name = hpp_name))
with open(langs_name, 'r') as langs_file:
languages_list = langs_file.read().split()
languages_list.sort()
lang_str = ",\n".join([" \"{}\"".format(language) for language in languages_list])
with open(hpp_name, "w") as hpp_file:
hpp_file.write(languages_hpp_template.format(lang_list_size = len(languages_list), lang_list = lang_str))