Don't touch subdirs.el if it is unchanged.
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 28 May 2008 17:39:56 +0000 (17:39 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 28 May 2008 17:39:56 +0000 (17:39 +0000)
ChangeLog
update-subdirs

index 0a12b3d..50bfa20 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index d7e7012..b4df2ce 100755 (executable)
@@ -45,7 +45,11 @@ else
 ;; 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