Robustify merge-gnulib a bit

* admin/merge-gnulib: Fail if autogen.sh fails.
Remove autom4te.cache before running gnulib-tool.
This commit is contained in:
Paul Eggert 2022-02-25 12:26:59 -08:00
parent ca3858563c
commit 9372e543a9

View file

@ -103,7 +103,10 @@ test -x "$gnulib_srcdir"/gnulib-tool || {
}
# gnulib-tool has problems with a bare checkout (Bug#32452#65).
test -f configure || ./autogen.sh
test -f configure || ./autogen.sh || exit
# Old caches can confuse autoconf when some Gnulib-related changes take effect.
rm -fr autom4te.cache || exit
avoided_flags=
for module in $AVOIDED_MODULES; do