meowlib/pb/protogen.sh
ycc 5eb6be1415
All checks were successful
continuous-integration/drone/push Build is passing
test changing cameCase for _ in protobuf servercard
2023-12-28 16:57:34 +01:00

14 lines
433 B
Bash
Executable File

#!/bin/bash
echo Generating Golang
protoc -I=. --go_out=.. messages.proto
mv ../forge.redroom.link/yves/meowlib/messages.pb.go ../
rm -rf ../forge.redroom.link
echo Generating HTML doc
protoc --plugin=protoc-gen-doc=/usr/bin/protoc-gen-doc \
--doc_out=../doc/generated \
--doc_opt=html,index.html \
*.proto
echo Generating UML
protoc --plugin=protoc-gen-uml=/usr/bin/protoc-gen-uml \
--uml_out=../doc/generated -I=. *.proto