chiark / gitweb /
Using ASDF to set up logical pathname translation for clg
[clg] / tools / clg-tools.asd
index 8ab71ab0a09846cb246cc1348f92cacaa96d8eda..21c2e0c493daecd99e736d483f46a04d63b7109d 100644 (file)
 
 (defsystem clg-tools
   :depends-on (#+sbcl sb-posix)
-  :components ((:file "autoexport")
-              (:file "utils")
+  :components ((:file "utils")
               (:file "config" :depends-on ("utils"))
-              (:file "asdf-extensions" :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))))))