make+mobile: pass expected falafel version to build script
This commit is contained in:
parent
39241dcdc7
commit
935fa7f12d
2
Makefile
2
Makefile
@ -226,7 +226,7 @@ rpc-check: rpc
|
|||||||
|
|
||||||
mobile-rpc: falafel goimports
|
mobile-rpc: falafel goimports
|
||||||
@$(call print, "Creating mobile RPC from protos.")
|
@$(call print, "Creating mobile RPC from protos.")
|
||||||
cd ./mobile; ./gen_bindings.sh
|
cd ./mobile; ./gen_bindings.sh $(FALAFEL_COMMIT)
|
||||||
|
|
||||||
vendor:
|
vendor:
|
||||||
@$(call print, "Re-creating vendor directory.")
|
@$(call print, "Re-creating vendor directory.")
|
||||||
|
@ -3,11 +3,17 @@
|
|||||||
mkdir -p build
|
mkdir -p build
|
||||||
|
|
||||||
# Check falafel version.
|
# Check falafel version.
|
||||||
falafelVersion="0.7.1"
|
falafelVersion=$1
|
||||||
|
if [ -z $falafelVersion ]
|
||||||
|
then
|
||||||
|
echo "falafel version not set"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
falafel=$(which falafel)
|
falafel=$(which falafel)
|
||||||
if [ $falafel ]
|
if [ $falafel ]
|
||||||
then
|
then
|
||||||
version=$($falafel -v)
|
version="v$($falafel -v)"
|
||||||
if [ $version != $falafelVersion ]
|
if [ $version != $falafelVersion ]
|
||||||
then
|
then
|
||||||
echo "falafel version $falafelVersion required"
|
echo "falafel version $falafelVersion required"
|
||||||
|
Loading…
Reference in New Issue
Block a user