2022-01-15 22:19:29 +01:00
|
|
|
#!/bin/bash
|
2023-12-28 16:57:34 +01:00
|
|
|
echo Generating Golang
|
2022-01-15 22:19:29 +01:00
|
|
|
protoc -I=. --go_out=.. messages.proto
|
|
|
|
mv ../forge.redroom.link/yves/meowlib/messages.pb.go ../
|
2022-10-29 20:07:35 +02:00
|
|
|
rm -rf ../forge.redroom.link
|
2023-12-28 16:57:34 +01:00
|
|
|
echo Generating HTML doc
|
2023-11-06 22:44:21 +01:00
|
|
|
protoc --plugin=protoc-gen-doc=/usr/bin/protoc-gen-doc \
|
|
|
|
--doc_out=../doc/generated \
|
|
|
|
--doc_opt=html,index.html \
|
|
|
|
*.proto
|
2023-12-28 16:57:34 +01:00
|
|
|
echo Generating UML
|
2023-11-06 22:44:21 +01:00
|
|
|
protoc --plugin=protoc-gen-uml=/usr/bin/protoc-gen-uml \
|
|
|
|
--uml_out=../doc/generated -I=. *.proto
|