1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-23 14:58:09 +00:00

fix(common): update protob combine script to reflect new changes

This commit is contained in:
Pavol Rusnak 2020-12-09 11:10:23 +01:00
parent a0fccca041
commit d657cdaeef
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -6,7 +6,7 @@ check: messages.pb messages-binance.pb messages-bitcoin.pb messages-bootloader.p
combine:
echo 'syntax = "proto2";' > combined.proto
echo 'import "google/protobuf/descriptor.proto";' >> combined.proto
grep -hv -e '^import ' -e '^syntax' -e '^package' -e 'option java_' messages*.proto | sed 's/hw\.trezor\.messages\.common\.//' >> combined.proto
grep -hv -e '^import ' -e '^syntax' -e '^package' -e 'option java_' messages*.proto | sed 's/ hw\.trezor\.messages\.common\./ /' | sed 's/ common\./ /' | grep -v ' reserved '>> combined.proto
clean:
rm -f *.pb