From: Chris Hanson Date: Tue, 31 Oct 1995 23:26:48 +0000 (+0000) Subject: Save the operating-system-specific loading files under separate names, X-Git-Tag: 20090517-FFI~5805 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=abe8575c0be3ca5bbfc6eeb9648b0a36c6957b9d;p=mit-scheme.git Save the operating-system-specific loading files under separate names, so that multiple operating systems may be supported from the same build-directory. --- diff --git a/v7/src/edwin/edwin.sf b/v7/src/edwin/edwin.sf index a1973dc1d..1be21a0b6 100644 --- a/v7/src/edwin/edwin.sf +++ b/v7/src/edwin/edwin.sf @@ -1,6 +1,6 @@ ;;; -*-Scheme-*- ;;; -;;; $Id: edwin.sf,v 1.12 1995/01/06 18:38:08 cph Exp $ +;;; $Id: edwin.sf,v 1.13 1995/10/31 23:26:48 cph Exp $ ;;; ;;; Copyright (c) 1991-95 Massachusetts Institute of Technology ;;; @@ -91,14 +91,24 @@ (load "decls") -(in-package (->environment '(CROSS-REFERENCE)) - ((generate/common - (lambda (pathname pmodel) - (write-cref-unusual pathname pmodel) - (write-globals pathname pmodel) - (write-constructor pathname pmodel))) - "edwin")) -(sf "edwin.con") +(let ((generate + (in-package (->environment '(CROSS-REFERENCE)) + (generate/common + (lambda (pathname pmodel) + (write-cref-unusual pathname pmodel) + (write-globals pathname pmodel) + (write-constructor pathname pmodel))))) + (name + (case microcode-id/operating-system + ((DOS) "edwindos") + ((NT) "edwinw32") + ((OS2) "edwinos2") + ((UNIX) "edwinunx") + (else "edwin")))) + (if (not (string=? name "edwin")) + (copy-file "edwin.pkg" (pathname-new-type name "pkg"))) + (generate name) + (sf (pathname-new-type name "con"))) (if (not (file-processed? "edwin" "ldr" "bld")) (sf "edwin.ldr")) (if (and (file-exists? "edwin.avd")