Skip to content
Snippets Groups Projects
Unverified Commit 92c77e88 authored by takt's avatar takt Committed by GitHub
Browse files

Merge pull request #175 from bio-routing/fix/proto_script_for_mac

since pushd is not available on os x, the script couldn't be run
parents 8f926bba 308262d5
No related branches found
No related tags found
No related merge requests found
......@@ -5,9 +5,8 @@ package api
import (
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
......
#!/bin/sh
pushd $GOPATH/src
dir=$(pwd)
echo "Switching to GOPATH"
cd "$GOPATH/src"
echo "Generating protobuf code"
protoc --go_out=plugins=grpc:. github.com/bio-routing/bio-rd/net/api/*.proto
protoc --go_out=plugins=grpc:. github.com/bio-routing/bio-rd/route/api/*.proto
protoc --go_out=plugins=grpc:. github.com/bio-routing/bio-rd/protocols/bgp/api/*.proto
popd
echo "Switching back to working directory"
cd $dir
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment