| 1 | ;;;-*- Mode: Lisp; Package: (WOOD) -*-
|
|---|
| 2 |
|
|---|
| 3 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|---|
| 4 | ;;
|
|---|
| 5 | ;; wood.lisp
|
|---|
| 6 | ;; This file exists so that you can (require "WOOD" "ccl:wood;wood")
|
|---|
| 7 | ;; You may need to edit the definition of the "wood" logical host
|
|---|
| 8 | ;; in the file "load-wood.lisp"
|
|---|
| 9 | ;;
|
|---|
| 10 | ;; Portions Copyright © 2006 Clozure Associates and Anvita eReference (www.Anvita.info)
|
|---|
| 11 | ;; Copyright © 1996 Digitool, Inc.
|
|---|
| 12 | ;; Copyright © 1992-1995 Apple Computer, Inc.
|
|---|
| 13 | ;; All rights reserved.
|
|---|
| 14 | ;; Permission is given to use, copy, and modify this software provided
|
|---|
| 15 | ;; that Digitool is given credit in all derivative works.
|
|---|
| 16 | ;; This software is provided "as is". Digitool makes no warranty or
|
|---|
| 17 | ;; representation, either express or implied, with respect to this software,
|
|---|
| 18 | ;; its quality, accuracy, merchantability, or fitness for a particular
|
|---|
| 19 | ;; purpose.
|
|---|
| 20 | ;;
|
|---|
| 21 | ;; Wood for LispWorks was funded by Clozure Associates and Anvita eReference (www.Anvita.info)
|
|---|
| 22 | ;;
|
|---|
| 23 |
|
|---|
| 24 | ;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|---|
| 25 | ;;
|
|---|
| 26 | ;; Modification History
|
|---|
| 27 | ;;
|
|---|
| 28 | ;; 02/01/06 gz LispWorks port
|
|---|
| 29 | ;; ------------- 0.961
|
|---|
| 30 | ;; 09/20/96 bill resignal the error in the handler-case if not a wrong fasl version error
|
|---|
| 31 | ;; -------------- 0.96
|
|---|
| 32 | ;; -------------- 0.95
|
|---|
| 33 | ;; -------------- 0.94
|
|---|
| 34 | ;; 03/09/96 bill say ccl::*.fasl-pathname* instead of ".fasl".
|
|---|
| 35 | ;; -------------- 0.93
|
|---|
| 36 | ;; 08/11/95 bill Handle wrong fasl version errors
|
|---|
| 37 | ;; -------------- 0.9
|
|---|
| 38 | ;; 03/09/94 bill wood::load-wood -> (find-symbol "LOAD-WOOD" :wood)
|
|---|
| 39 | ;; -------------- 0.8
|
|---|
| 40 | ;; -------------- 0.6
|
|---|
| 41 | ;; 08/31/92 bill new file
|
|---|
| 42 | ;;
|
|---|
| 43 |
|
|---|
| 44 | (in-package :cl-user)
|
|---|
| 45 |
|
|---|
| 46 | #+ccl
|
|---|
| 47 | (labels ((load-it ()
|
|---|
| 48 | (let* ((path (or *load-pathname* *loading-file-source-file*))
|
|---|
| 49 | (load-wood-path
|
|---|
| 50 | (make-pathname :host (pathname-host path)
|
|---|
| 51 | :device (pathname-device path)
|
|---|
| 52 | :directory (pathname-directory path)
|
|---|
| 53 | :name "load-wood"
|
|---|
| 54 | :defaults nil)))
|
|---|
| 55 | (handler-case
|
|---|
| 56 | (compile-load load-wood-path :verbose t)
|
|---|
| 57 | (simple-error (condition)
|
|---|
| 58 | (if (equalp "Wrong FASL version."
|
|---|
| 59 | (simple-condition-format-string condition))
|
|---|
| 60 | (progn
|
|---|
| 61 | (format t "~&;Deleting FASL file from other MCL version...")
|
|---|
| 62 | (delete-file (merge-pathnames load-wood-path
|
|---|
| 63 | ccl::*.fasl-pathname*))
|
|---|
| 64 | (return-from load-it (load-it)))
|
|---|
| 65 | (error condition)))))))
|
|---|
| 66 | (load-it))
|
|---|
| 67 |
|
|---|
| 68 |
|
|---|
| 69 | #+LispWorks
|
|---|
| 70 | (labels ((load-it ()
|
|---|
| 71 | (let* ((path (or *load-pathname*
|
|---|
| 72 | dspec:*source-pathname*
|
|---|
| 73 | system:*current-pathname*))
|
|---|
| 74 | (load-wood-path
|
|---|
| 75 | (make-pathname :host (pathname-host path)
|
|---|
| 76 | :device (pathname-device path)
|
|---|
| 77 | :directory (pathname-directory path)
|
|---|
| 78 | :name "load-wood")))
|
|---|
| 79 | (compile-file load-wood-path :verbose t :load t))))
|
|---|
| 80 | (load-it))
|
|---|
| 81 |
|
|---|
| 82 |
|
|---|
| 83 |
|
|---|
| 84 | ; Wood package is created by "load-wood.lisp"
|
|---|
| 85 | ; find-symbol so we can compile this file before loading that one.
|
|---|
| 86 | (funcall (find-symbol "LOAD-WOOD" :wood)) ; does (provide "WOOD")
|
|---|
| 87 |
|
|---|
| 88 |
|
|---|
| 89 |
|
|---|
| 90 | ;;; 1 3/10/94 bill 1.8d247
|
|---|
| 91 | ;;; 2 3/23/95 bill 1.11d010
|
|---|