From ea4f1a91ac1c11a91a21169125b7ed931a4ab7fe Mon Sep 17 00:00:00 2001 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 deletion(-) diff --git a/THANKS b/THANKS index fbb7eb4b3..e6730b4a9 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 adam@yggdrasil.com +Adam Sampson ats@offog.org Adrian Bunk bunk@fs.tum.de Akim Demaille akim@freefriends.org Alan Modra amodra@bigpond.net.au diff --git a/tests/defs.in b/tests/defs.in index 31426f2ee..4990e307f 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" } -- 2.11.4.GIT