From: Chris Hanson Date: Fri, 6 Jan 1995 00:14:12 +0000 (+0000) Subject: Don't look for old files with 4-character suffixes; this will just X-Git-Tag: 20090517-FFI~6820 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=c0e42ee00d9bf3b75a26ce0efd232ece813500d5;p=mit-scheme.git Don't look for old files with 4-character suffixes; this will just make bringing up the DOS version more difficult. --- diff --git a/v7/src/cref/redpkg.scm b/v7/src/cref/redpkg.scm index d9cd41983..9a24eb0f2 100644 --- a/v7/src/cref/redpkg.scm +++ b/v7/src/cref/redpkg.scm @@ -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))))) ;;;; Packages diff --git a/v7/src/cref/toplev.scm b/v7/src/cref/toplev.scm index 104f53748..2eba8b935 100644 --- a/v7/src/cref/toplev.scm +++ b/v7/src/cref/toplev.scm @@ -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)))) - + (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