[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: email@example.com
- Subject: Scigraph
- From: Sheldon S. Ball <firstname.lastname@example.org>
- Date: Tue, 17 Aug 93 14:41:49 -0500
- Cc: email@example.com
;;Below is a section of code from load-dwim.lisp, a file from the Scigraph
;;scientific graphics application contributed to cambridge.apple.com by BBN.
;;How can MCL-CLIM be added to the list of platforms supported? In the case
;;of file-type-for-sources, adding a line
;; #+Coral "lisp"
;;I'm not entirely sure about fixes to file-type-for-binaries &
;;;******************** from load-dwim.lisp *****************************
;; -*- mode: common-lisp; package: user -*-
Copyright (c) 1987-1993 by BBN Systems and Technologies,
A Division of Bolt, Beranek and Newman Inc.
All rights reserved.
Permission to use, copy, modify and distribute this software and its
documentation is hereby granted without fee, provided that the above
copyright notice of BBN Systems and Technologies, this paragraph and the
one following appear in all copies and in supporting documentation, and
that the name Bolt Beranek and Newman Inc. not be used in advertising or
publicity pertaining to distribution of the software without specific,
written prior permission. Any distribution of this software or derivative
works must comply with all applicable United States export control laws.
BBN makes no representation about the suitability of this software for any
purposes. It is provided "AS IS", without express or implied warranties
including (but not limited to) all implied warranties of merchantability
and fitness for a particular purpose, and notwithstanding any other
provision contained herein. In no event shall BBN be liable for any
special, indirect or consequential damages whatsoever resulting from loss
of use, data or profits, whether in an action of contract, negligence or
other tortuous action, arising out of or in connection with the use or
performance of this software, even if BBN Systems and Technologies is
advised of the possiblity of such damages.
(eval-when (compile load eval)
(when (find-package 'clim)
(pushnew :clim *features*))) ; Add a CLIM feature.
(eval-when (compile load eval)
;; CLIM 1 doesn't affect the *features*. Here's a rule of thumb
;; that seems to work.
(and (find-package 'clim)
(not (boundp (intern "CLIM-VERSION" 'clim))) ; from clim 0.9
(not (fboundp (intern "STREAM-CURSOR-POSITION" 'clim))) ; from clim 2
(not (member :clim-2 *features*))
(not (member :clim-0.9 *features*)))
(pushnew :clim-1 *features*)
(pushnew :clim-1.0 *features*)))
(defun file-type-for-sources ()
#+(and (not genera) (not unix)) (error "Not yet implemented."))
(defun file-type-for-binaries ()
#+allegro #.(pathname-type (compile-file-pathname "foo"))
#+lucid (car lcl:*load-binary-pathname-types*)
#+(and (not genera)
(error "Not yet implemented."))
(defun suggest-bin-directory (&optional (base *load-pathname*)
;; The number of different binaries you must have is
;; the cross product of the instruction set and the gui.
#+(and genera (not clim)) "DW"
(if base (pathname-directory base) '(:relative))
(format nil "~A~A-~A"
(defun compile-and-load-file (name)
(let* ((source-dir (make-pathname :defaults *load-pathname*
(source (make-pathname :defaults source-dir
(bin-dir (suggest-bin-directory *load-pathname*))
(binary (make-pathname :defaults bin-dir
(when (or (not (probe-file binary))
(< (file-write-date binary) (file-write-date source)))
(compile-file source :output-file binary))
(eval-when (load eval)
(map nil #'compile-and-load-file
;;;******************** End load-dwim.lisp *****************************
;;Any suggestions will be appreciated.
;;Incidentally, I had a similar problem uncompressing scigraph.tar.Z as
;;did K Joback.