File: logical-hostnames.lisp

package info (click to toggle)
cl-portable-aserve 20150826.git39b1324%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,240 kB
  • sloc: lisp: 22,562; makefile: 54; sh: 36
file content (56 lines) | stat: -rw-r--r-- 2,187 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
;;; -*- Mode: LISP; Syntax: ANSI-Common-Lisp; Package: CL-USER; -*-

(in-package "CL-USER")

(setf (logical-pathname-translations "ACL-COMPAT")
      `((#-mcl "*.*.*" #+mcl "**;*.*.*" ;mcl gives recording source-file error when redefining anything loaded with this
         ;; e.g., "/home/jsc/lisp/src/aserve/acl-compat-lw/" 
         ,(merge-pathnames 
           (make-pathname :host (pathname-host *load-truename*)
                          :directory '(:relative "acl-compat" #+mcl :wild-inferiors)
                          :name    :wild
                          :type    :wild
                          :version :wild
;                          :case :common
)
           *load-truename*))))

#+lispworks
(setf (logical-pathname-translations "CL-SSL")
      `(("*.*.*" 
         ;; e.g., "/home/jsc/lisp/src/aserve/acl-compat-lw/cl-ssl/" 
         ,(merge-pathnames 
           (make-pathname :host (pathname-host *load-truename*)
                          :directory '(:relative "acl-compat-lw" "cl-ssl")
                          :name    :wild
                          :type    :wild
                          :version :wild
;                          :case :common
)
           *load-truename*))))


(setf (logical-pathname-translations "ASERVE")
      `(("**;*.lisp.*" ;,(logical-pathname "**;*.cl.*")
	 ,(merge-pathnames 
	   (make-pathname :host (pathname-host *load-truename*)
                         :directory '(:relative "aserve" 
                                                 :wild-inferiors)
                         :name :wild
                         :type "cl"
                         :version :wild)
	   *load-truename*
         ))
        ("**;*.*.*" 
         ;; e.g., "/home/jsc/lisp/src/aserve/aserve-lw/**/"
         ,(merge-pathnames 
           (make-pathname :host (pathname-host *load-truename*)
                          :directory '(:relative "aserve" 
                                                 :wild-inferiors)
                          :name    :wild
                          :type    :wild
                          :version :wild
                          ;:case :common
                          )
           *load-truename*))))