2017-06-11  Bruno Haible  <br...@clisp.org>

        gnulib-tool: Clean up after autotools.
        * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
        useless directory left over by the Autotools.

diff --git a/gnulib-tool b/gnulib-tool
index c78e68b..48c15b3 100755
--- a/gnulib-tool
+++ b/gnulib-tool
@@ -6479,6 +6479,7 @@ func_create_testdir ()
    func_execute_command ${AUTOCONF} || func_exit 1
    func_execute_command ${AUTOHEADER} || func_exit 1
    func_execute_command ${AUTOMAKE} --add-missing --copy || func_exit 1
+   rm -rf autom4te.cache
   ) || func_exit 1
   if $inctests && ! $single_configure; then
     # Create autogenerated files.
@@ -6500,6 +6501,7 @@ func_create_testdir ()
      func_execute_command ${AUTOCONF} || func_exit 1
      func_execute_command ${AUTOHEADER} || func_exit 1
      func_execute_command ${AUTOMAKE} --add-missing --copy || func_exit 1
+     rm -rf autom4te.cache
     ) || func_exit 1
   fi
   # Need to run configure and make once, to create built files that are to be
@@ -6659,6 +6661,7 @@ func_create_megatestdir ()
    func_execute_command mkdir build-aux
    func_execute_command ${AUTOCONF} || func_exit 1
    func_execute_command ${AUTOMAKE} --add-missing --copy || func_exit 1
+   rm -rf autom4te.cache
   ) || func_exit 1
 }
 


Reply via email to