Better err message when no protobuf found
This commit is contained in:
parent
a27044154a
commit
0d61498db9
1 changed files with 2 additions and 2 deletions
4
build
4
build
|
@ -228,7 +228,7 @@ done
|
||||||
[ $Dryrun -gt 0 ] && e=echo
|
[ $Dryrun -gt 0 ] && e=echo
|
||||||
|
|
||||||
# let every error abort
|
# let every error abort
|
||||||
set -e
|
#set -e
|
||||||
|
|
||||||
# This fragment can't be in a function - since it exports several vars
|
# This fragment can't be in a function - since it exports several vars
|
||||||
if [ -n "$Arch" ]; then
|
if [ -n "$Arch" ]; then
|
||||||
|
@ -304,7 +304,7 @@ if [ -n "$Protobufs" ]; then
|
||||||
slicksrc=github.com/gogo/protobuf/protoc-gen-gogoslick
|
slicksrc=github.com/gogo/protobuf/protoc-gen-gogoslick
|
||||||
pc=$(type -p protoc)
|
pc=$(type -p protoc)
|
||||||
|
|
||||||
[ -z "$pc" ] && die "Need 'protoc' for building .."
|
[ -z "$pc" ] && die "Please install protobuf-tools .."
|
||||||
|
|
||||||
slick=$(hosttool protoc-gen-gogoslick $Hostbindir $slicksrc) || exit 1
|
slick=$(hosttool protoc-gen-gogoslick $Hostbindir $slicksrc) || exit 1
|
||||||
#if [ ! -f $slick ]; then
|
#if [ ! -f $slick ]; then
|
||||||
|
|
Loading…
Add table
Reference in a new issue