2021-11-29 21:11:27 -08:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
# simple sanity checking for repo
|
2023-02-04 11:02:43 -08:00
|
|
|
if [ ! -d "../protobufs" ]; then
|
|
|
|
|
echo "Please check out the protobuf submodule by running: `git submodule update --init`"
|
2021-11-29 21:11:27 -08:00
|
|
|
exit
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# simple sanity checking for executable
|
2023-02-04 11:02:43 -08:00
|
|
|
if [ ! -x "$(which protoc)" ]; then
|
2022-05-29 20:43:24 -05:00
|
|
|
echo "Please install swift-protobuf by running: brew install swift-protobuf"
|
2021-11-29 21:11:27 -08:00
|
|
|
exit
|
|
|
|
|
fi
|
|
|
|
|
|
2023-02-04 11:02:43 -08:00
|
|
|
protoc --proto_path=./protobufs --swift_out=./Meshtastic/Protobufs ./protobufs/meshtastic/*.proto
|
2023-01-18 11:33:45 -06:00
|
|
|
|
2021-11-29 21:11:27 -08:00
|
|
|
echo "Done generating the swift files from the proto files."
|
|
|
|
|
echo "Build, test, and commit changes."
|