Keun Soo Yim | 1420155 | 2016-05-13 09:15:12 -0700 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
Yuexi Ma | 40f91e8 | 2016-08-04 13:25:33 -0700 | [diff] [blame^] | 3 | # Modify any import statements (to remove subdir path) |
Keun Soo Yim | 1420155 | 2016-05-13 09:15:12 -0700 | [diff] [blame] | 4 | |
Yuexi Ma | 40f91e8 | 2016-08-04 13:25:33 -0700 | [diff] [blame^] | 5 | ## Modify import statement in proto/AndroidSystemControlMessage.proto |
| 6 | sed -i 's/import "test\/vts\/proto\/InterfaceSpecificationMessage.proto";/import "InterfaceSpecificationMessage.proto";/g' proto/AndroidSystemControlMessage.proto |
| 7 | ## Compile proto/AndroidSystemControlMessage.proto to .py code |
Keun Soo Yim | 078b177 | 2016-06-28 16:36:18 -0700 | [diff] [blame] | 8 | protoc -I=proto --python_out=proto proto/AndroidSystemControlMessage.proto |
Yuexi Ma | 40f91e8 | 2016-08-04 13:25:33 -0700 | [diff] [blame^] | 9 | ## Restore import statement in proto/AndroidSystemControlMessage.proto |
| 10 | sed -i 's/import "InterfaceSpecificationMessage.proto";/import "test\/vts\/proto\/InterfaceSpecificationMessage.proto";/g' proto/AndroidSystemControlMessage.proto |
| 11 | |
Keun Soo Yim | 078b177 | 2016-06-28 16:36:18 -0700 | [diff] [blame] | 12 | protoc -I=proto --python_out=proto proto/InterfaceSpecificationMessage.proto |
Keun Soo Yim | 954459b | 2016-08-02 22:04:04 -0700 | [diff] [blame] | 13 | protoc -I=proto --python_out=proto proto/VtsReportMessage.proto |
Yuexi Ma | 40f91e8 | 2016-08-04 13:25:33 -0700 | [diff] [blame^] | 14 | |
| 15 | # Compile all the python source codes |
| 16 | python -m compileall . |