From b3414967d5a9247cf094dd5ee3b4807711b1f703 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 15 May 2007 10:18:48 +0200 Subject: Generate a dozen test-related Makefile.am files at bootstrap-time. * README-hacking: Build-from-checkout now require Perl, too. * bootstrap: Now that these generated Makefile.am files are no longer under version control, they must be created at bootstrap time. --- ChangeLog | 7 +++++++ README-hacking | 1 + bootstrap | 16 ++++++++++++++++ 3 files changed, 24 insertions(+) diff --git a/ChangeLog b/ChangeLog index 59040acf6..3b67efe7f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2007-05-15 Jim Meyering + + Generate a dozen test-related Makefile.am files at bootstrap-time. + * README-hacking: Build-from-checkout now require Perl, too. + * bootstrap: Now that these generated Makefile.am files are no longer + under version control, they must be created at bootstrap time. + 2007-05-14 Paul Eggert * man/chmod.x: Document chmod's behavior with setuid and setgid bits. diff --git a/README-hacking b/README-hacking index 6a2714ad4..4ad917a1f 100644 --- a/README-hacking +++ b/README-hacking @@ -16,6 +16,7 @@ tools we depend upon, including: - Bison - Gettext - Gzip +- Perl - Tar - Wget diff --git a/bootstrap b/bootstrap index 329408505..a3877256e 100755 --- a/bootstrap +++ b/bootstrap @@ -484,6 +484,22 @@ if test $with_gettext = yes; then rm -fr $bt $bt2 || exit fi +# Coreutils is unusual in that it generates some of its test-related +# Makefile.am files. That must be done before invoking automake. +PERL=perl +for tool in cut head join pr sort tac tail test tr uniq wc; do + m=tests/$tool/Makefile.am + t=${m}t + mam_template=tests/Makefile.am.in + rm -f $m $t + sed -n '1,/^##test-files-begin/p' $mam_template > $t + echo "x = $tool" >> $t + srcdir=tests/$tool + $PERL -I$srcdir -w -- tests/mk-script $srcdir --list >> $t + sed -n '/^##test-files-end/,$p' $mam_template >> $t + chmod -w $t + mv $t $m +done # Reconfigure, getting other files. -- cgit v1.2.3-54-g00ecf