Debian Codegraph @

monero/src/device_trezor/trezor/fetch_protob.sh

raw symbols SCIP
1 #!/usr/bin/env sh
2 set -e
3
4 cd "$(dirname "$0")"
5
6 if [ ! -d "trezor-common" ]; then
7 git clone https://github.com/trezor/trezor-common.git
8 fi
9
10 cd trezor-common
11 git fetch
12 git reset --hard bff7fdfe436c727982cc553bdfb29a9021b423b0
13 cd ..
14
15 rm -rf protob
16 mkdir protob
17
18 proto_files="messages.proto messages-common.proto messages-monero.proto messages-management.proto messages-debug.proto"
19
20 for file in ${proto_files}
21 do
22 cp "trezor-common/protob/${file}" protob/
23 done
24 cp "trezor-common/COPYING" protob/
25
26 cd protob
27 echo "Checksums:"
28 find . -type f -print0 | env LC_ALL=C sort -z | xargs -r0 sha256sum