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
commit792414668fce5c1fa0fd933f1ebeea99317b6ecc (patch)
tree28bbac4a8e249629a56f3e899d9e2ba49256de71 /update-subdirs
parent5e84e8f9ac86bba843557c809ca879acc63db4c9 (diff)
downloademacs-792414668fce5c1fa0fd933f1ebeea99317b6ecc.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