From 67323e00d04e4790947f0f0b0ac8c244769008a2 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 10 Mar 2007 15:20:28 +0000 Subject: [PATCH] Avoiding the "./configure && make && make distclean" did not work most of the time. --- ChangeLog | 6 ++++++ gnulib-tool | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4a9e7919d4..9eef4acf32 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-03-10 Bruno Haible + + * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like + CLEANFILES. Put spaces in each line of $cleaned_files, not only the + first and the last. + 2007-03-10 Bruno Haible * lib/stdint_.h (uint_least64_t): Fix typo in last patch. diff --git a/gnulib-tool b/gnulib-tool index eadd98dc90..6f7d672029 100755 --- a/gnulib-tool +++ b/gnulib-tool @@ -22,7 +22,7 @@ progname=$0 package=gnulib -cvsdatestamp='$Date: 2007-03-06 03:38:30 $' +cvsdatestamp='$Date: 2007-03-10 15:20:28 $' last_checkin_date=`echo "$cvsdatestamp" | sed -e 's,^\$[D]ate: ,,'` version=`echo "$last_checkin_date" | sed -e 's/ .*$//' -e 's,/,-,g'` nl=' @@ -2739,10 +2739,10 @@ func_create_testdir () fi # Need to run configure and make once, to create built files that are to be # distributed (such as getdate.c). - # Extract the value of "CLEANFILES += ...". + # Extract the value of "CLEANFILES += ..." and "MOSTLYCLEANFILES += ...". cleaned_files=`sed -e "$sed_remove_backslash_newline" < "$testdir/$sourcebase/Makefile.am" \ - | sed -n -e 's,^CLEANFILES[ ]*+=\([^#]*\).*$,\1,p'` - cleaned_files=" "`for file in $cleaned_files; do echo "$file"; done`" " + | sed -n -e 's,^CLEANFILES[ ]*+=\([^#]*\).*$,\1,p' -e 's,^MOSTLYCLEANFILES[ ]*+=\([^#]*\).*$,\1,p'` + cleaned_files=`for file in $cleaned_files; do echo " $file "; done` # Extract the value of "BUILT_SOURCES += ...". Remove variable references # such $(FOO_H) because they don't refer to distributed files. sed_remove_make_variables='s,[$]([A-Za-z0-9_]*),,g' -- 2.30.2