1
0
mirror of https://github.com/danog/tl-schema.git synced 2024-11-30 04:19:47 +01:00
tl-schema/utils/merge.py
2017-10-13 18:19:10 +00:00

15 lines
341 B
Python

import glob
def file_get_contents(filename):
with open(filename) as f:
return f.read()
res = file_get_contents('android.tl')+file_get_contents('end-to-end.tl')
for dir in sorted(glob.glob('l*')):
res += "==="+str(int(dir[1:]))+"===\n"+file_get_contents(dir+"/schema.tl")
with open('all.tl', 'w+') as f:
f.write(res)