Merge branch '277-command-v-not-which-glib-2-58' into 'glib-2-58'

Backport `command -v` vs `which` changes to glib-2-58

See merge request GNOME/glib!288
This commit is contained in:
Emmanuele Bassi 2018-09-05 10:12:41 +00:00
commit f1e272e14d

View File

@ -7,8 +7,7 @@ test -n "$srcdir" || srcdir=.
olddir=`pwd`
cd "$srcdir"
GTKDOCIZE=$(which gtkdocize 2>/dev/null)
if test -z $GTKDOCIZE; then
if ! command -v gtkdocize >/dev/null 2>&1; then
echo "You don't have gtk-doc installed, and thus won't be able to generate the documentation."
rm -f gtk-doc.make
cat > gtk-doc.make <<EOF
@ -19,8 +18,7 @@ else
gtkdocize || exit $?
fi
AUTORECONF=`which autoreconf`
if test -z $AUTORECONF; then
if ! command -v autoreconf >/dev/null 2>&1; then
echo "*** No autoreconf found, please install it ***"
exit 1
fi