chiark
/
gitweb
/
~mdw
/
clg
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Using ASDF to set up logical pathname translation for clg
[clg]
/
tools
/
clg-tools.asd
diff --git
a/tools/clg-tools.asd
b/tools/clg-tools.asd
index a4da6ab27669f892ac9e850f734bf47ae4364eb8..21c2e0c493daecd99e736d483f46a04d63b7109d 100644
(file)
--- a/
tools/clg-tools.asd
+++ b/
tools/clg-tools.asd
@@
-6,9
+6,20
@@
(in-package #:clg-tools)
(in-package #:clg-tools)
+#+clisp
+(unless custom:*parse-namestring-ansi*
+ (error "Standard behaviour of PARSE-NAMESTRING must be enabled by setting CUSTOM:*PARSE-NAMESTRING-ANSI* to non-NIL or running clisp with the -ansi option"))
(defsystem clg-tools
(defsystem clg-tools
- :components ((:file "autoexport")
- (:file "config")
- (:file "asdf-extensions")))
+ :depends-on (#+sbcl sb-posix)
+ :components ((:file "utils")
+ (:file "config" :depends-on ("utils"))
+ (:file "asdf-extensions" :depends-on ("utils"))
+ (:file "autoexport" :depends-on ("asdf-extensions"))))
+
+
+;; For backward compatibility
+(setf
+ (logical-pathname-translations "clg")
+ `(("**;*.*.*" ,(make-pathname :directory (append (butlast (pathname-directory (asdf:component-pathname (asdf:find-system :clg-tools)))) (list :wild-inferiors))))))