I finally removed the generated Makefile.am files from version control:
http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=893ac688cc
but that means those same files must be generated at bootstrap time,
before automake runs. Hence the change below.
FWIW, I may change the PERL= assignment to accommodate those
who have perl available only under some other name. Do any of
you know someone like that?
2007-05-15 Jim Meyering <[EMAIL PROTECTED]>
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.
diff --git a/README-hacking b/README-hacking
index 6a2714a..4ad917a 100644
--- a/README-hacking
+++ b/README-hacking
@@ -16,6 +16,7 @@ tools we depend upon, including:
- Bison <http://www.gnu.org/software/bison/>
- Gettext <http://www.gnu.org/software/gettext/>
- Gzip <http://www.gnu.org/software/gzip/>
+- Perl <http://www.cpan.org/>
- Tar <http://www.gnu.org/software/tar/>
- Wget <http://www.gnu.org/software/wget/>
diff --git a/bootstrap b/bootstrap
index 3294085..a387725 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.
_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils