1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 15:38:11 +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: combine:
echo 'syntax = "proto2";' > combined.proto echo 'syntax = "proto2";' > combined.proto
echo 'import "google/protobuf/descriptor.proto";' >> 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: clean:
rm -f *.pb rm -f *.pb