mirror of
https://github.com/mautrix/signal.git
synced 2026-05-15 05:36:53 -04:00
15 lines
431 B
Bash
Executable file
15 lines
431 B
Bash
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
|
|
pre-commit run -a
|