changeset 86200:aa0de1ea4215

Atomically update subdirs.el.
author Andreas Schwab <schwab@suse.de>
date Sat, 17 Nov 2007 12:02:23 +0000
parents b938987c900a
children ea8415c6aa5b
files update-subdirs
diffstat 1 files changed, 7 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/update-subdirs	Sat Nov 17 10:53:32 2007 +0000
+++ b/update-subdirs	Sat Nov 17 12:02:23 2007 +0000
@@ -37,17 +37,16 @@
 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