1
1
mirror of https://github.com/github/semantic.git synced 2024-12-29 01:42:43 +03:00
semantic/script/protoc

19 lines
461 B
Plaintext
Raw Normal View History

2019-07-06 01:11:33 +03:00
#!/usr/bin/env bash
#/ Usage: script/protoc
#/
#/ Generate code from .proto files
set -ex
cd "$(dirname "$0")/.."
docker build -t semantic-protoc --target protoc .
PARENT_DIR=$(dirname $(pwd))
export PROJECT="github.com/github/semantic"
# Generate Haskell for semantic's protobuf types
docker run --rm --user $(id -u):$(id -g) -v $(pwd):/go/src/$PROJECT -w /go/src/$PROJECT \
2019-10-01 01:26:45 +03:00
semantic-protoc --proto_path=proto --haskell_out=./src \
2019-07-06 01:11:33 +03:00
semantic.proto