meshtastic-firmware/bin/regen-protos.sh

16 wiersze
651 B
Bash
Czysty Zwykły widok Historia

#!/usr/bin/env bash
2020-03-03 16:23:58 +00:00
2020-12-04 10:54:00 +00:00
set -e
2022-03-26 06:06:54 +00:00
echo "This script requires https://jpa.kapsi.fi/nanopb/download/ version 0.4.5 to be located in the"
2020-12-11 00:31:41 +00:00
echo "meshtastic-device root directory if the following step fails, you should download the correct"
2022-03-26 06:06:54 +00:00
echo "prebuilt binaries for your computer into nanopb-0.4.5"
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!
cd proto
2022-03-26 06:06:54 +00:00
../nanopb-0.4.5/generator-bin/protoc --nanopb_out=-v:../src/mesh/generated -I=../proto *.proto
2020-12-04 10:54:00 +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."
#bin/regen-docs.sh