From 627c8641ee72637f5343ba545a186077cacee280 Mon Sep 17 00:00:00 2001 From: MaximZaitsev Date: Mon, 22 Aug 2016 13:10:44 +0300 Subject: [PATCH] make auto creating out dir in compile proto script --- proto/protofiles_sources/compile_proto.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/proto/protofiles_sources/compile_proto.sh b/proto/protofiles_sources/compile_proto.sh index cb6845c5e33..f39ad34ab71 100755 --- a/proto/protofiles_sources/compile_proto.sh +++ b/proto/protofiles_sources/compile_proto.sh @@ -1,2 +1,5 @@ #!/bin/bash +parent_path=$( cd "$(dirname "${BASH_SOURCE}")" ; pwd -P ) +cd "$parent_path" +mkdir out -p ../compiler/build/protoc --kotlin_out="./out/" --proto_path="./server_car" ./server_car/*.proto