]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
* tests/defs.in (is_newest): Cope with multiple newer files.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Wed, 10 Jan 2007 17:57:24 +0000 (17:57 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Wed, 10 Jan 2007 17:57:24 +0000 (17:57 +0000)
* NEWS: mention `install-sh -C'.

ChangeLog
NEWS
tests/defs.in

index 6862ebbd41940bf6e9db659ad916bd2bb3b5eedf..d38acf5ded29e29af4f42d2136e8da82ce43993b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * tests/defs.in (is_newest): Cope with multiple newer files.
+       * NEWS: mention `install-sh -C'.
+
 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
 
        * lib/install-sh (initialize_posix_glob): New var.
diff --git a/NEWS b/NEWS
index d3f5dd688ffcf5135f62a439fb7ff9df0b7af5d7..9237d009fa317fa4f51a7edca98623fe38243e1b 100644 (file)
--- 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.
+
 \f
 New in 1.10:
 
index b2c31c7c8a21c16b9d1e532cd9335dc4c4ee9df7..1c9a986bdffa3ff493e1472bae5fddac850923b3 100644 (file)
@@ -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"
 }