dev
sh 28 lines 763 Bytes
Raw
1 #!/bin/bash
2 set -x -e
3 cd "$(dirname "$0")"
4
5 HASH=5800cfdfc89ae46d8a343721d052d5e02470c2a7
6
7 if [[ ! -d "zcash_lib/.git" ]];
8 then
9 rm -rf zcash_lib
10 git clone https://github.com/MrCyjaneK/zwallet.git zcash_lib
11 cd zcash_lib
12 else
13 cd zcash_lib
14 git fetch -a
15 fi
16
17
18 git reset --hard
19 git checkout $HASH
20 git reset --hard
21 git submodule update --init --force --recursive
22
23 # in go I could nicely replace => the heck out of it
24 # sadly rust is not go
25 find . -name Cargo.toml -exec sed -i.bak -E '
26 s|rusqlite[[:space:]]*=[[:space:]]*\{[^}]*\}|rusqlite = { version = "0.29.0", features = ["bundled", "modern_sqlite", "backup"] }|g
27 ' {} +
28 # find . -name Cargo.toml -exec sed -i.bak -E 's|r2d2_sqlite[[:space:]]*=[[:space:]]*([^\n]*)|r2d2_sqlite = "0.32.0"|g' {} +