Save the operating-system-specific loading files under separate names,
authorChris Hanson <org/chris-hanson/cph>
Tue, 31 Oct 1995 23:26:48 +0000 (23:26 +0000)
committerChris Hanson <org/chris-hanson/cph>
Tue, 31 Oct 1995 23:26:48 +0000 (23:26 +0000)
so that multiple operating systems may be supported from the same
build-directory.

v7/src/edwin/edwin.sf

index a1973dc1dcdcc417398395d84c6b229188db3a68..1be21a0b641602bcebb0bc1727836b4434481ada 100644 (file)
@@ -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
 ;;;
 
 (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")