- The symbolic links were being made in the wrong directory (ln-s was
the primitive which is not sensitive to the working directory).
- delete-file was failing when the files did not exist. Protected by
file-exists? now.
#| -*-Scheme-*-
-$Id: bootstrap.scm,v 1.2 1992/08/29 12:06:07 jinx Exp $
+$Id: bootstrap.scm,v 1.3 1992/11/07 16:13:44 jinx Exp $
Copyright (c) 1991-1992 Massachusetts Institute of Technology
((VAX) "vax")))
(ln-sf
(let ((ln-s
- (make-primitive-procedure
- 'FILE-LINK-SOFT)))
+ (let ((prim (make-primitive-procedure
+ 'FILE-LINK-SOFT)))
+ (lambda (from to)
+ (prim (->namestring (merge-pathnames from))
+ (->namestring (merge-pathnames to)))))))
(lambda (from to)
- (delete-file to)
+ (if (file-exists? to)
+ (delete-file to))
(ln-s from to)))))
(let ((prefix
(string-append "machines/" directory)))