]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
autogen.sh: Fix use of undefined function.
authorBruno Haible <bruno@clisp.org>
Mon, 17 Sep 2018 20:25:45 +0000 (22:25 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 17 Sep 2018 20:25:45 +0000 (22:25 +0200)
* autogen.sh: Rewrite error message code.

autogen.sh

index 2b2f03cc4b7566761b724c6296ddf876486b406c..bffda50b975e92671f115f702a9c2717fe734a12 100755 (executable)
@@ -54,8 +54,10 @@ while :; do
   esac
 done
 
-$use_git || test -d "$GNULIB_SRCDIR" \
-  || die "Error: --no-git requires --gnulib-srcdir"
+if ! $use_git && ! test -d "$GNULIB_SRCDIR"; then
+  echo "error: --no-git requires GNULIB_SRCDIR to be set" 1>&2
+  exit 1
+fi
 
 cleanup_gnulib() {
   status=$?