From: Collin Funk Date: Thu, 22 Feb 2024 05:32:10 +0000 (-0800) Subject: gnulib-tool.py: Follow gnulib-tool changes, part 25. X-Git-Tag: v1.0~389 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=ac36c297e53ba38cd03db2ff51d4678310128118;p=gnulib.git gnulib-tool.py: Follow gnulib-tool changes, part 25. Follow gnulib-tool change 2017-06-11 Bruno Haible gnulib-tool: Clean up after autotools. * pygnulib/GLTestDir.py (GLTestDir.execute): Remove unnessecary autom4te.cache directory generated by Autotools. (GLMegaTestDir.execute): Likewise. --- diff --git a/ChangeLog b/ChangeLog index 1ab1246616..677e798885 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2024-02-22 Collin Funk + + gnulib-tool.py: Follow gnulib-tool changes, part 25. + Follow gnulib-tool change + 2017-06-11 Bruno Haible + gnulib-tool: Clean up after autotools. + * pygnulib/GLTestDir.py (GLTestDir.execute): Remove + unnessecary autom4te.cache directory generated by Autotools. + (GLMegaTestDir.execute): Likewise. + 2024-02-21 Bruno Haible c-strtof: New module. diff --git a/gnulib-tool.py.TODO b/gnulib-tool.py.TODO index da6df2ab90..1b4fe26cfc 100644 --- a/gnulib-tool.py.TODO +++ b/gnulib-tool.py.TODO @@ -818,17 +818,6 @@ Date: Sun Oct 29 16:57:32 2017 +0100 -------------------------------------------------------------------------------- -commit 87d14d357f694338acdb8745cea7304ff623ce47 -Author: Bruno Haible -Date: Mon Jun 12 01:38:57 2017 +0200 - - gnulib-tool: Clean up after autotools. - - * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove - useless directory left over by the Autotools. - --------------------------------------------------------------------------------- - commit 30459fe101541698ec704acb224946d73676750e Author: Bruno Haible Date: Thu Jun 8 15:09:31 2017 +0200 diff --git a/pygnulib/GLTestDir.py b/pygnulib/GLTestDir.py index 144798bd01..3bb99c59cc 100644 --- a/pygnulib/GLTestDir.py +++ b/pygnulib/GLTestDir.py @@ -21,6 +21,7 @@ import re import sys import codecs import subprocess as sp +import shutil from . import constants from .GLError import GLError from .GLConfig import GLConfig @@ -675,6 +676,7 @@ class GLTestDir(object): # automake args = [UTILS['automake'], '--add-missing', '--copy'] constants.execute(args, verbose) + shutil.rmtree('autom4te.cache') os.chdir(DIRS['cwd']) if inctests and not single_configure: # Do not use "${AUTORECONF} --force --install", because it may invoke @@ -705,6 +707,7 @@ class GLTestDir(object): # automake args = [UTILS['automake'], '--add-missing', '--copy'] constants.execute(args, verbose) + shutil.rmtree('autom4te.cache') os.chdir(DIRS['cwd']) # Need to run configure and make once, to create built files that are to be @@ -994,4 +997,5 @@ class GLMegaTestDir(object): constants.execute(args, verbose) args = [UTILS['automake'], '--add-missing', '--copy'] constants.execute(args, verbose) + shutil.rmtree('autom4te.cache') sp.call(['rm', '-rf', self.config['tempdir']], shell=False)