Commit a0b57638 authored by Connor's avatar Connor Committed by yiwu-arbug

add update rocksdb script (#370)

Signed-off-by: 's avatarConnor1996 <zbk602423539@gmail.com>
parent 4fa9a0c5
...@@ -23,3 +23,13 @@ update_titan: ...@@ -23,3 +23,13 @@ update_titan:
fi fi
@git submodule sync @git submodule sync
@git submodule update --init --remote librocksdb_sys/libtitan_sys/titan @git submodule update --init --remote librocksdb_sys/libtitan_sys/titan
update_rocksdb:
@if [ -n "${ROCKSDB_REPO}" ]; then \
git config --file=.gitmodules submodule.rocksdb.url https://github.com/${ROCKSDB_REPO}/rocksdb.git; \
fi
@if [ -n "${ROCKSDB_BRANCH}" ]; then \
git config --file=.gitmodules submodule.rocksdb.branch ${ROCKSDB_BRANCH}; \
fi
@git submodule sync
@git submodule update --remote librocksdb_sys/rocksdb
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment