2022-01-07 10:29:58 +00:00
|
|
|
#!/usr/bin/env bash
|
2020-03-03 16:23:58 +00:00
|
|
|
|
2020-12-04 10:54:00 +00:00
|
|
|
set -e
|
|
|
|
|
2022-06-17 13:37:52 +00:00
|
|
|
echo "This script requires https://jpa.kapsi.fi/nanopb/download/ version 0.4.6 to be located in the"
|
2022-10-31 07:32:38 +00:00
|
|
|
echo "firmware root directory if the following step fails, you should download the correct"
|
2022-06-17 13:37:52 +00:00
|
|
|
echo "prebuilt binaries for your computer into nanopb-0.4.6"
|
2020-12-11 00:31:41 +00:00
|
|
|
|
2020-03-03 16:23:58 +00:00
|
|
|
# the nanopb tool seems to require that the .options file be in the current directory!
|
2022-05-12 10:45:30 +00:00
|
|
|
cd protobufs
|
2022-06-17 13:37:52 +00:00
|
|
|
../nanopb-0.4.6/generator-bin/protoc --nanopb_out=-v:../src/mesh/generated -I=../protobufs *.proto
|
2020-12-04 10:54:00 +00:00
|
|
|
|
2021-05-01 03:26:36 +00:00
|
|
|
#echo "Regenerating protobuf documentation - if you see an error message"
|
|
|
|
#echo "you can ignore it unless doing a new protobuf release to github."
|
2022-01-07 10:29:58 +00:00
|
|
|
#bin/regen-docs.sh
|