aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Schwab <[email protected]>2007-11-17 12:02:32 +0000
committerAndreas Schwab <[email protected]>2007-11-17 12:02:32 +0000
commit8d6069a493028afaaf923e7cbea96e747ba5a6ef (patch)
treeec7ca4a9abdc07433c0916515f5454beddd5fec2
parent4e60b1b66c943ba03bb36897c4df5012c068ffd4 (diff)
Atomically update subdirs.el.
-rw-r--r--ChangeLog4
-rwxr-xr-xupdate-subdirs15
2 files changed, 11 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index a65c581ac4..c2cf2d8ef1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-11-17 Andreas Schwab <[email protected]>
+
+ * update-subdirs: Atomically update subdirs.el.
+
2007-11-17 Glenn Morris <[email protected]>
* Makefile.in (check-declare): New target.
diff --git a/update-subdirs b/update-subdirs
index c1d44cab9b..1d9cc68812 100755
--- a/update-subdirs
+++ b/update-subdirs
@@ -37,17 +37,16 @@ done
if [ "x$subdirs" = x ]; then
rm -f subdirs.el
else
-
- echo ";; -*- no-byte-compile: t -*-" > subdirs.el
-
- echo ";; In load-path, after this directory should come
-;; certain of its subdirectories. Here we specify them." >> subdirs.el
-
- echo "(normal-top-level-add-to-load-path '($subdirs))
+ rm -f subdirs.el~
+ echo ";; -*- no-byte-compile: t -*-
+;; In load-path, after this directory should come
+;; certain of its subdirectories. Here we specify them.
+(normal-top-level-add-to-load-path '($subdirs))
;; Local" "Variables:
;; version-control: never
;; no-byte-compile: t
-;; End:" >> subdirs.el
+;; End:" > subdirs.el~
+ mv subdirs.el~ subdirs.el
fi
# arch-tag: 56ebcf1b-5c30-4934-b0b4-72d374064704