meson/test cases/common/71 ctarget dependency/gen2.py

11 lines
228 B
Python
Raw Normal View History

#!/usr/bin/env python3
2015-09-03 05:48:03 +08:00
import sys, os
from glob import glob
2015-09-03 05:48:03 +08:00
files = glob(os.path.join(sys.argv[1], '*.tmp'))
assert len(files) == 1
with open(files[0]) as ifile, open(sys.argv[2], 'w') as ofile:
2016-08-30 14:31:44 +08:00
ofile.write(ifile.read())