]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Fix error handling in autogen.sh.
authorBruno Haible <bruno@clisp.org>
Mon, 12 Dec 2016 02:08:49 +0000 (03:08 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 12 Dec 2016 02:08:49 +0000 (03:08 +0100)
* autogen.sh: Don't invoke automake if aclocal, autoconf, or autoheader failed.

autogen.sh

index b42d76d024a574c11284e2aa306e79c93ca776d5..b605b649296ac190c8e5e02a4242d553b7abe327 100755 (executable)
@@ -101,7 +101,7 @@ if ! $skip_gnulib; then
     if $use_git && test -d "$GNULIB_SRCDIR"/.git && \
           git_modules_config submodule.gnulib.url >/dev/null; then
       echo "$0: getting gnulib files..."
-      if git submodule -h|grep -- --reference > /dev/null; then
+      if git submodule -h | grep -- --reference > /dev/null; then
         # Prefer the one-liner available in git 1.6.4 or newer.
         git submodule update --init --reference "$GNULIB_SRCDIR" \
           "$gnulib_path" || exit $?
@@ -496,7 +496,7 @@ cd gettext-tools
 aclocal -I m4 -I ../gettext-runtime/m4 -I ../m4 -I gnulib-m4 -I libgrep/gnulib-m4 -I libgettextpo/gnulib-m4 \
   && autoconf \
   && autoheader && touch ChangeLog config.h.in \
-  && test -d intl || mkdir intl \
+  && { test -d intl || mkdir intl; } \
   && automake --add-missing --copy \
   || exit $?
 cd "$dir0"