2024-08-13 01:23:18 +03:00
|
|
|
#!/bin/sh
|
2023-04-21 10:49:54 -04:00
|
|
|
PKG_IMPORT_PATH="go.mau.fi/mautrix-signal/pkg/signalmeow/signalpb"
|
|
|
|
|
for file in *.proto
|
|
|
|
|
do
|
2024-08-13 01:23:18 +03:00
|
|
|
# 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
|
2023-04-21 10:49:54 -04:00
|
|
|
done
|
2025-01-18 02:58:43 +02:00
|
|
|
protoc --go_out=. \
|
|
|
|
|
--go_opt=Mbackuppb/Backup.proto=$PKG_IMPORT_PATH/backuppb \
|
|
|
|
|
--go_opt=paths=source_relative \
|
|
|
|
|
backuppb/Backup.proto
|
2025-01-14 14:13:46 +02:00
|
|
|
pre-commit run -a
|