make+mobile: pass expected falafel version to build script

This commit is contained in:
Johan T. Halseth committed 2020-07-17 08:49:03 +02:00
1 parent 39241dcdc7
commit 935fa7f12d
2 files changed
+9 -3

No files matched your search

+1 -1
View File
@@ -226,7 +226,7 @@ rpc-check: rpc
mobile-rpc: falafel goimports
@$(call print, "Creating mobile RPC from protos.")
cd ./mobile; ./gen_bindings.sh
cd ./mobile; ./gen_bindings.sh $(FALAFEL_COMMIT)
vendor:
@$(call print, "Re-creating vendor directory.")
+8 -2
View File
@@ -3,11 +3,17 @@
mkdir -p build
# Check falafel version.
falafelVersion="0.7.1"
falafelVersion=$1
if [ -z $falafelVersion ]
then
echo "falafel version not set"
exit 1
fi
falafel=$(which falafel)
if [ $falafel ]
then
version=$($falafel -v)
version="v$($falafel -v)"
if [ $version != $falafelVersion ]
then
echo "falafel version $falafelVersion required"