1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-22 14:28:07 +00:00

add protoc version and trezor-common revision to autogenerated files

This commit is contained in:
Pavol Rusnak 2017-06-21 13:44:26 +02:00
parent e435920d6a
commit f880a09ae7
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
3 changed files with 9 additions and 0 deletions

View File

@ -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

View File

@ -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'))

View File

@ -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'))