source: branches/lispworks/wood.lisp@ 41

Last change on this file since 41 was 36, checked in by Gail Zacharias, 9 years ago

Update to current eRef version

  • Property svn:eol-style set to native
File size: 3.3 KB
Line 
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
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
22;;;;;;;;;;;;;;;;;;;;;;;;;;
23;;
24;; Modification History
25;;
26;; 02/01/06 gz LispWorks port
27;; ------------- 0.961
28;; 09/20/96 bill resignal the error in the handler-case if not a wrong fasl version error
29;; -------------- 0.96
30;; -------------- 0.95
31;; -------------- 0.94
32;; 03/09/96 bill say ccl::*.fasl-pathname* instead of ".fasl".
33;; -------------- 0.93
34;; 08/11/95 bill Handle wrong fasl version errors
35;; -------------- 0.9
36;; 03/09/94 bill wood::load-wood -> (find-symbol "LOAD-WOOD" :wood)
37;; -------------- 0.8
38;; -------------- 0.6
39;; 08/31/92 bill new file
40;;
41
42(in-package :cl-user)
43
44#+ccl
45(labels ((load-it ()
46 (let* ((path (or *load-pathname* *loading-file-source-file*))
47 (load-wood-path
48 (make-pathname :host (pathname-host path)
49 :device (pathname-device path)
50 :directory (pathname-directory path)
51 :name "load-wood"
52 :defaults nil)))
53 (handler-case
54 (compile-load load-wood-path :verbose t)
55 (simple-error (condition)
56 (if (equalp "Wrong FASL version."
57 (simple-condition-format-string condition))
58 (progn
59 (format t "~&;Deleting FASL file from other MCL version...")
60 (delete-file (merge-pathnames load-wood-path
61 ccl::*.fasl-pathname*))
62 (return-from load-it (load-it)))
63 (error condition)))))))
64 (load-it))
65
66
67#+LispWorks
68(labels ((load-it ()
69 (let* ((path (or *load-pathname*
70 dspec:*source-pathname*
71 system:*current-pathname*))
72 (load-wood-path
73 (make-pathname :host (pathname-host path)
74 :device (pathname-device path)
75 :directory (pathname-directory path)
76 :name "load-wood")))
77 (compile-file load-wood-path :verbose t :load t))))
78 (load-it))
79
80
81
82; Wood package is created by "load-wood.lisp"
83; find-symbol so we can compile this file before loading that one.
84(funcall (find-symbol "LOAD-WOOD" :wood)) ; does (provide "WOOD")
85
86
87
88;;; 1 3/10/94 bill 1.8d247
89;;; 2 3/23/95 bill 1.11d010
Note: See TracBrowser for help on using the repository browser.