diff options
author | AlexSm <alex@ydb.tech> | 2023-12-27 20:02:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-27 20:02:45 +0100 |
commit | 694b6359defafcb74325a1f4fd4f7fc96ff9554a (patch) | |
tree | ba7d5f0ddf1754cd9153a49106743b442fb67f0a | |
parent | 25431f4941d02513666d9b5d3a5372dcb2f4844b (diff) | |
download | ydb-694b6359defafcb74325a1f4fd4f7fc96ff9554a.tar.gz |
Add library increment script (#760)
-rwxr-xr-x | ydb/ci/increment.sh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/ydb/ci/increment.sh b/ydb/ci/increment.sh new file mode 100755 index 00000000000..98952e61e3a --- /dev/null +++ b/ydb/ci/increment.sh @@ -0,0 +1,25 @@ +# Usage: increment.sh <source_ydblib_repo_root> <target_ydb_repo_root> +# Expects previous github SHA in <target_ydb_repo_root>/contrib/ydb/git_sha.txt +# Will get/patch only files changed since that commit + +set -e +set -o pipefail + +LIB_ROOT=$1 +if [ -z "${LIB_ROOT}" ]; then + echo "Source lib root must be provided as a first free arg" + exit 1 +fi +echo "Source library root: ${LIB_ROOT}" + +MAIN_ROOT=$2 +if [ -z "${MAIN_ROOT}" ]; then + echo "Target main root must be provided as a second free arg" + exit 1 +fi +echo "Target Main root: ${MAIN_ROOT}" + +rsync -r $LIB_ROOT/build $LIB_ROOT/certs $LIB_ROOT/cmake $LIB_ROOT/contrib $LIB_ROOT/library $LIB_ROOT/scripts $LIB_ROOT/tools $LIB_ROOT/util $LIB_ROOT/vendor $LIB_ROOT/yt $MAIN_ROOT \ + --filter '- **/a.yaml' --filter '- **/.arcignore' --filter '- **/.yandex_meta/' --filter '- contrib/ydb/' --filter '- build/internal/' --filter '- build/ext_mapping.conf.json' \ + --filter '- **/CMakeLists*.txt' --delete + |