bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gnulib-tool: speeding up --create-testdir


From: Bruno Haible
Subject: gnulib-tool: speeding up --create-testdir
Date: Sat, 10 Mar 2007 16:34:16 +0100
User-agent: KMail/1.5.4

The patch from 2007-01-14 to avoid "./configure; make" during --create-testdir
did most often not work. This should fix it.

2007-03-10  Bruno Haible  <address@hidden>

        * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
        CLEANFILES. Put spaces in each line of $cleaned_files, not only the
        first and the last.

*** gnulib-tool 6 Mar 2007 03:38:30 -0000       1.222
--- gnulib-tool 10 Mar 2007 15:20:28 -0000      1.223
***************
*** 2739,2748 ****
    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 += ...".
    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`" "
    # 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'
--- 2739,2748 ----
    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 += ..." and "MOSTLYCLEANFILES += ...".
    cleaned_files=`sed -e "$sed_remove_backslash_newline" < 
"$testdir/$sourcebase/Makefile.am" \
!                  | 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'





reply via email to

[Prev in Thread] Current Thread [Next in Thread]