mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 15:38:11 +00:00
add protoc version and trezor-common revision to autogenerated files
This commit is contained in:
parent
e435920d6a
commit
f880a09ae7
@ -9,3 +9,8 @@ done
|
||||
|
||||
# hack to make output python 3 compatible
|
||||
sed -i 's/^import types_pb2/from . import types_pb2/g' $CURDIR/trezorlib/messages_pb2.py
|
||||
|
||||
# add version
|
||||
PROTOC_VER=$(protoc --version)
|
||||
PROTOB_REV=$(git rev-parse HEAD)
|
||||
sed -i "3i# $PROTOC_VER\n# trezor-common $PROTOB_REV" $CURDIR/trezorlib/*_pb2.py
|
||||
|
@ -1,5 +1,7 @@
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: messages.proto
|
||||
# libprotoc 3.1.0
|
||||
# trezor-common 0001cb18c065d7f3aacd6f8d7c5be42cd7477a94
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
|
@ -1,5 +1,7 @@
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: types.proto
|
||||
# libprotoc 3.1.0
|
||||
# trezor-common 0001cb18c065d7f3aacd6f8d7c5be42cd7477a94
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
|
Loading…
Reference in New Issue
Block a user