speedo: Check that wget and gpgv are installed.

* build-aux/getswdb.sh: Check for required tools.
This commit is contained in:
Werner Koch 2014-09-18 16:00:34 +02:00
parent 2427bc5bc7
commit 59b6f6f16e
1 changed files with 11 additions and 0 deletions

View File

@ -94,6 +94,12 @@ fi
version=$(cat "$srcdir/../VERSION")
version_num=$(echo "$version" | cvtver)
if ! $GPGV --version >/dev/null 2>/dev/null ; then
echo "command \"gpgv\" is not installed" >&2
echo "(please install an older version of GnuPG)" >&2
exit 1
fi
#
# Download the list and verify.
#
@ -107,6 +113,11 @@ if [ $skip_download = yes ]; then
exit 1
fi
else
if ! $WGET --version >/dev/null 2>/dev/null ; then
echo "command \"wget\" is not installed" >&2
exit 1
fi
if ! $WGET -q -O swdb.lst "$urlbase/swdb.lst" ; then
echo "download of swdb.lst failed." >&2
exit 1