summaryrefslogtreecommitdiff
path: root/update-subdirs
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2008-05-28 17:39:56 +0000
committerStefan Monnier <monnier@iro.umontreal.ca>2008-05-28 17:39:56 +0000
commita37f048b420f054d4101bccf79d5a2f1e6f2b990 (patch)
treed9833bcf4e26d8cfdcfe983d609aebbef318bf8e /update-subdirs
parent8dc3e753f5cb84f91ce5a19ba6d534a1a8f94cc2 (diff)
downloademacs-a37f048b420f054d4101bccf79d5a2f1e6f2b990.tar.gz
Don't touch subdirs.el if it is unchanged.
Diffstat (limited to 'update-subdirs')
-rwxr-xr-xupdate-subdirs4
1 files changed, 4 insertions, 0 deletions
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