From f99675f00d39d2b78d8b2a17db1cb4aa98d8f2f1 Mon Sep 17 00:00:00 2001 From: Ralf Wildenhues Date: Wed, 10 Jan 2007 17:57:23 +0000 Subject: [PATCH] * tests/defs.in (is_newest): Cope with multiple newer files. * NEWS: mention `install-sh -C'. --- ChangeLog | 5 +++++ NEWS | 4 ++++ tests/defs.in | 5 +++-- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6862ebbd..d38acf5d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-01-10 Ralf Wildenhues + + * tests/defs.in (is_newest): Cope with multiple newer files. + * NEWS: mention `install-sh -C'. + 2006-12-25 Paul Eggert * lib/install-sh (initialize_posix_glob): New var. diff --git a/NEWS b/NEWS index d3f5dd68..9237d009 100644 --- a/NEWS +++ b/NEWS @@ -11,6 +11,10 @@ New in 1.10a: * Miscellaneous changes: - New shorthand `$(pkglibexecdir)' for `$(libexecdir)/@PACKAGE@'. + + - install-sh supports -C, which does not update the installed file + (and its time stamps) if the contents did not change. + New in 1.10: diff --git a/tests/defs.in b/tests/defs.in index b2c31c7c..1c9a986b 100644 --- a/tests/defs.in +++ b/tests/defs.in @@ -2,7 +2,7 @@ # @configure_input@ # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, -# 2005, 2006 Free Software Foundation, Inc. +# 2005, 2006, 2007 Free Software Foundation, Inc. # # This file is part of GNU Automake. # @@ -328,7 +328,8 @@ old_timestamp=198309271735.59 # Resolve ties in favor of FILE. is_newest () { - test x`find "$@" -newer "$1"` = x + is_newest_files=`find "$@" -newer "$1"` + test -z "$is_newest_files" } -- 2.43.5