diff options
author | Jim Meyering <meyering@redhat.com> | 2008-04-28 22:59:24 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2008-04-28 22:59:24 +0200 |
commit | 28f1b61e594eeb91658e8db392d8911a4485dc7a (patch) | |
tree | 3c999ab657d03f1c45818a84830ee63cb713a9fe | |
parent | 29a2fb38568a1f6951235092d829cc37bc019b4e (diff) | |
download | coreutils-28f1b61e594eeb91658e8db392d8911a4485dc7a.tar.xz |
tests: don't hard-code coreutils list of tests/ SUBDIRS in bootstrap
* bootstrap: Extract the list from tests/Makefile.am, and die
when it is empty -- it will be, eventually.
-rwxr-xr-x | bootstrap | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -535,7 +535,9 @@ fi mam_template=tests/Makefile.am.in if test -f $mam_template; then PERL=perl - for tool in cut head join pr sort tac tail test tr uniq; do + tool_subdirs=`$PERL -ne '/^SUBDIRS = (.*)/ and print $1' tests/Makefile.am` + test "$tool_subdirs" = '' && { echo "$0: no more SUBDIRS: FIXME"1>&2; exit 1;} + for tool in $tool_subdirs; do m=tests/$tool/Makefile.am t=${m}t rm -f $m $t |