diff options
author | alexv-smirnov <alex@ydb.tech> | 2023-06-13 11:05:01 +0300 |
---|---|---|
committer | alexv-smirnov <alex@ydb.tech> | 2023-06-13 11:05:01 +0300 |
commit | bf0f13dd39ee3e65092ba3572bb5b1fcd125dcd0 (patch) | |
tree | 1d1df72c0541a59a81439842f46d95396d3e7189 /build/scripts/kt_copy.py | |
parent | 8bfdfa9a9bd19bddbc58d888e180fbd1218681be (diff) | |
download | ydb-bf0f13dd39ee3e65092ba3572bb5b1fcd125dcd0.tar.gz |
add ymake export to ydb
Diffstat (limited to 'build/scripts/kt_copy.py')
-rw-r--r-- | build/scripts/kt_copy.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/build/scripts/kt_copy.py b/build/scripts/kt_copy.py new file mode 100644 index 0000000000..f833c24ef4 --- /dev/null +++ b/build/scripts/kt_copy.py @@ -0,0 +1,17 @@ +#!/usr/bin/env python +import sys + +if __name__ == '__main__': + source = sys.argv[1] + destination = sys.argv[2] + source_root = sys.argv[3] + build_root = sys.argv[4] + with open(source, 'r') as afile: + src_content = afile.read() + src_content = src_content.replace(source_root + '/', "") + result_srcs = "" + for line in src_content.split("\n"): + if not line.startswith(build_root): + result_srcs += line + "\n" + with open(destination, 'w') as afile: + afile.write(result_srcs) |