>From ea4f1a91ac1c11a91a21169125b7ed931a4ab7fe Mon Sep 17 00:00:00 2001 Message-Id: From: Stefano Lattarini Date: Sat, 23 Jul 2011 13:55:20 +0200 Subject: [PATCH] test defs: function 'is_newest' now works also with directories Reported by Jim Meyering against automake master (see bug#9147) and by Adam Sampson against automake 1.11.3 (see bug#10730). * tests/defs (is_newest): Call 'find' with the '-prune' option, so that it won't descend in the directories (which could cause spurious results). * THANKS: Update. Backported from commit v1.11-914-gb6a40fa (originally on master). --- THANKS | 1 + tests/defs.in | 2 +- 2 files changed, 2 insertions(+), 1 deletions(-) diff --git a/THANKS b/THANKS index fbb7eb4..e6730b4 100644 --- a/THANKS +++ b/THANKS @@ -3,6 +3,7 @@ It would not be what it is today without the invaluable help of these people: Adam J. Richter address@hidden +Adam Sampson address@hidden Adrian Bunk address@hidden Akim Demaille address@hidden Alan Modra address@hidden diff --git a/tests/defs.in b/tests/defs.in index 31426f2..4990e30 100644 --- a/tests/defs.in +++ b/tests/defs.in @@ -486,7 +486,7 @@ old_timestamp=198309271735.59 # Resolve ties in favor of FILE. is_newest () { - is_newest_files=`find "$@" -newer "$1"` + is_newest_files=`find "$@" -prune -newer "$1"` test -z "$is_newest_files" } -- 1.7.7.3