Don't look for old files with 4-character suffixes; this will just
authorChris Hanson <org/chris-hanson/cph>
Fri, 6 Jan 1995 00:14:12 +0000 (00:14 +0000)
committerChris Hanson <org/chris-hanson/cph>
Fri, 6 Jan 1995 00:14:12 +0000 (00:14 +0000)
make bringing up the DOS version more difficult.

v7/src/cref/redpkg.scm
v7/src/cref/toplev.scm

index d9cd41983129c6c97f732472fafbd988cae75553..9a24eb0f20b326307d83fcab3ddd2c45a333b3d8 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Id: redpkg.scm,v 1.6 1995/01/05 20:21:16 cph Exp $
+$Id: redpkg.scm,v 1.7 1995/01/06 00:14:12 cph Exp $
 
 Copyright (c) 1988-95 Massachusetts Institute of Technology
 
@@ -55,7 +55,6 @@ MIT in each case. |#
                        (pathname-new-type (merge-pathnames pathname
                                                            model-pathname)
                                           "glo")))
-                  (handle-old-pathname-type pathname "glob")
                   (if (file-exists? pathname)
                       (let ((contents (fasload pathname)))
                         (cond ((check-list contents symbol?)
@@ -122,7 +121,6 @@ MIT in each case. |#
 
 (define (cache-file-analyses! pmodel)
   (let ((pathname (pathname-new-type (pmodel/pathname pmodel) "fre")))
-    (handle-old-pathname-type pathname "free")
     (let ((result
           (let ((caches (if (file-exists? pathname) (fasload pathname) '())))
             (append-map! (lambda (package)
@@ -332,13 +330,6 @@ MIT in each case. |#
 (define (check-list items predicate)
   (and (list? items)
        (for-all? items predicate)))
-
-(define (handle-old-pathname-type pathname type)
-  (let ((old (pathname-new-type pathname type)))
-    (if (file-exists? old)
-       (if (file-exists? pathname)
-           (delete-file old)
-           (rename-file old pathname)))))
 \f
 ;;;; Packages
 
index 104f537487c08430f01d50fac44e66826f149653..2eba8b935dfd6af38d63c4a9aa338ae85fc88a1f 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Id: toplev.scm,v 1.7 1995/01/05 20:21:50 cph Exp $
+$Id: toplev.scm,v 1.8 1995/01/06 00:13:50 cph Exp $
 
 Copyright (c) 1988-95 Massachusetts Institute of Technology
 
@@ -73,7 +73,7 @@ MIT in each case. |#
      (write-globals pathname pmodel)
      (write-constructor pathname pmodel)
      (write-loader pathname pmodel))))
-\f
+
 (define (write-constructor pathname pmodel)
   (let ((constructor (construct-constructor pmodel)))
     (with-output-to-file (pathname-new-type pathname "con")
@@ -97,25 +97,16 @@ MIT in each case. |#
                  loader)))))
 
 (define (write-cref pathname pmodel)
-  (let ((old (pathname-new-type pathname "cref")))
-    (if (file-exists? old)
-       (delete-file old)))
   (with-output-to-file (pathname-new-type pathname "crf")
     (lambda ()
       (format-packages pmodel))))
 
 (define (write-cref-unusual pathname pmodel)
-  (let ((old (pathname-new-type pathname "cref")))
-    (if (file-exists? old)
-       (delete-file old)))
   (with-output-to-file (pathname-new-type pathname "crf")
     (lambda ()
       (format-packages-unusual pmodel))))
 
 (define (write-globals pathname pmodel)
-  (let ((old (pathname-new-type pathname "glob")))
-    (if (file-exists? old)
-       (delete-file old)))
   (fasdump (map (lambda (package)
                  (cons (package/name package)
                        (map binding/name