summaryrefslogtreecommitdiffstats
path: root/build/scripts/kt_copy.py
diff options
context:
space:
mode:
authoralexv-smirnov <[email protected]>2023-03-15 19:59:12 +0300
committeralexv-smirnov <[email protected]>2023-03-15 19:59:12 +0300
commit056bb284ccf8dd6793ec3a54ffa36c4fb2b9ad11 (patch)
tree4740980126f32e3af7937ba0ca5f83e59baa4ab0 /build/scripts/kt_copy.py
parent269126dcced1cc8b53eb4398b4a33e5142f10290 (diff)
add library/cpp/actors, ymake build to ydb oss export
Diffstat (limited to 'build/scripts/kt_copy.py')
-rw-r--r--build/scripts/kt_copy.py17
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 00000000000..f833c24ef41
--- /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)