changeset 95369:d147ddeb05f9

Don't touch subdirs.el if it is unchanged.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Wed, 28 May 2008 17:39:56 +0000
parents f77d335546ac
children fafc513e04bc
files ChangeLog update-subdirs
diffstat 2 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed May 28 17:37:04 2008 +0000
+++ b/ChangeLog	Wed May 28 17:39:56 2008 +0000
@@ -1,3 +1,7 @@
+2008-05-28  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+	* update-subdirs: Don't touch subdirs.el if it is unchanged.
+
 2008-05-14  Kenichi Handa  <handa@m17n.org>
 
 	* configure: Regenerate.
--- a/update-subdirs	Wed May 28 17:37:04 2008 +0000
+++ b/update-subdirs	Wed May 28 17:39:56 2008 +0000
@@ -45,7 +45,11 @@
 ;; version-control: never
 ;; no-byte-compile: t
 ;; End:" > subdirs.el~
+  if cmp "subdirs.el" "subdirs.el~" >/dev/null 2>&1; then
+    :; # echo "subdirs.el unchanged";
+  else
   mv subdirs.el~ subdirs.el
+  fi
 fi
 
 # arch-tag: 56ebcf1b-5c30-4934-b0b4-72d374064704