r2670: Auto commit for Debian build
authorKevin M. Rosenberg <kevin@rosenberg.net>
Mon, 16 Sep 2002 02:37:35 +0000 (02:37 +0000)
committerKevin M. Rosenberg <kevin@rosenberg.net>
Mon, 16 Sep 2002 02:37:35 +0000 (02:37 +0000)
package.cl
utils.cl

index ed1672b495416f971b30d9e5e1d4c7486045a2cc..b6a916f30ec8d08e172b53e5f5b8cb910c696a61 100644 (file)
@@ -7,7 +7,7 @@
 ;;;; Programmer:    Kevin M. Rosenberg
 ;;;; Date Started:  Aug 2002
 ;;;;
-;;;; $Id: package.cl,v 1.2 2002/09/16 02:22:15 kevin Exp $
+;;;; $Id: package.cl,v 1.3 2002/09/16 02:37:35 kevin Exp $
 ;;;;
 ;;;; This file, part of LML, is Copyright (c) 2002 by Kevin M. Rosenberg
 ;;;;
@@ -49,4 +49,5 @@
 
    ;; utils.cl
    #:lml-quit
+   #:lml-cwd
 ))
index 697fe45a1367aa19f4e33b8161ae56fc0298f89e..78e37141619d8e1f50ad44be2000dbf24189664c 100644 (file)
--- a/utils.cl
+++ b/utils.cl
@@ -1,4 +1,4 @@
-;;; $Id: utils.cl,v 1.2 2002/09/16 02:22:15 kevin Exp $
+;;; $Id: utils.cl,v 1.3 2002/09/16 02:37:35 kevin Exp $
 ;;;;
 ;;;; General purpose utilities
 
     (error 'not-implemented :proc (list 'quit code)))
 
 
+(defun lml-cwd ()
+  "Returns the current working directory. Based on CLOCC's DEFAULT-DIRECTORY function."
+  #+allegro (excl:current-directory)
+  #+clisp (#+lisp=cl ext:default-directory #-lisp=cl lisp:default-directory)
+  #+cmu (ext:default-directory)
+  #+cormanlisp (ccl:get-current-directory)
+  #+lispworks (hcl:get-working-directory)
+  #+lucid (lcl:working-directory)
+  #-(or allegro clisp cmu cormanlisp lispworks lucid) (truename "."))
+
+