From 792414668fce5c1fa0fd933f1ebeea99317b6ecc Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Wed, 28 May 2008 17:39:56 +0000 Subject: [PATCH] Don't touch subdirs.el if it is unchanged. --- ChangeLog | 4 ++++ update-subdirs | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 0a12b3d4e5b..50bfa20065a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-05-28 Stefan Monnier + + * update-subdirs: Don't touch subdirs.el if it is unchanged. + 2008-05-14 Kenichi Handa * configure: Regenerate. diff --git a/update-subdirs b/update-subdirs index d7e7012dadc..b4df2cea045 100755 --- a/update-subdirs +++ b/update-subdirs @@ -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 -- 2.39.2