|
@@ -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
|
|
|
+
|