refactor(make): better checks for tool existence and paths (#327)

After all the refactoring done so far, we can run checks directly
inside of `make`, because we have auto-cleanup, temporary environments
and we don't need wrapper scripts anymore.

Part of https://github.com/ooni/probe/issues/1466.
This commit is contained in:
Simone Basso
2021-05-05 11:33:51 +02:00
committed by GitHub
parent 4bd1533c86
commit 5738c07aff
3 changed files with 26 additions and 64 deletions
-16
View File
@@ -1,16 +0,0 @@
#!/bin/sh
# print the fullpath of the go we're using so that it's part
# of the build logs and we can easily increase our confidence
# that we are using the right go binary.
echo -n "$0: checking for go... "
go=`command -v go`
if [ -z $go ]; then
echo "not found"
exit 1
fi
echo "$go"
set -x
$go "$@"
-24
View File
@@ -1,24 +0,0 @@
#!/bin/sh
# print the fullpath of the go/gomobile we're using so that it's part
# of the build logs and we can easily increase our confidence
# that we are using the right go/gomobile binary.
echo -n "$0: checking for go... "
go=`command -v go`
if [ -z $go ]; then
echo "not found"
exit 1
fi
echo "$go"
echo -n "$0: checking for gomobile... "
gomobile=`command -v gomobile`
if [ -z $go ]; then
echo "not found"
exit 1
fi
echo "$gomobile"
set -x
$gomobile "$@"