mirror of
https://github.com/mautrix/signal.git
synced 2026-08-23 12:24:56 -04:00
19 lines
559 B
Shell
Executable file
19 lines
559 B
Shell
Executable file
#!/bin/sh
|
|
PKG_IMPORT_PATH="go.mau.fi/mautrix-signal/pkg/signalmeow/signalpb"
|
|
for file in *.proto
|
|
do
|
|
# Requires https://go-review.googlesource.com/c/protobuf/+/369634
|
|
protoc --go_out=. \
|
|
--go_opt=M${file}=$PKG_IMPORT_PATH \
|
|
--go_opt=paths=source_relative \
|
|
$file
|
|
done
|
|
protoc --go_out=. \
|
|
--go_opt=Mbackuppb/Backup.proto=$PKG_IMPORT_PATH/backuppb \
|
|
--go_opt=paths=source_relative \
|
|
backuppb/Backup.proto
|
|
protoc --go_out=. \
|
|
--go_opt=Mcds2pb/cds2.proto=$PKG_IMPORT_PATH/cds2pb \
|
|
--go_opt=paths=source_relative \
|
|
cds2pb/cds2.proto
|
|
pre-commit run -a
|