Re: Creating output directories with asdf

Daniel Barlow <[email protected]>
Newsgroups gmane.lisp.cclan.general
Message-ID <[email protected]>
Kevin Rosenberg <[email protected]> writes:

> (defmethod output-files ((operations compile-op) (c cl-source-file))
>   (let ((bin-file (compile-file-pathname src-file)))
>     (ensure-directory-exists (pathname-directory bin-file))
>     (list bin-file)))
>
> This part is easy, the hard part is the non-portable
> ENSURE-DIRECTORY-EXISTS function.  The first solution below is nice

To summarise our discussion on irc, I suggest that

(1) this should go in the PERFORM method: I don't think OUTPUT-FILES
    should have side-effects

(2) ENSURE-DIRECTORIES-EXIST exists




-dan

-- 

  http://ww.telent.net/cliki/ - Link farm for free CL-on-Unix resources 


-------------------------------------------------------
Sponsored by: AMD - Your access to the experts on Hammer Technology! 
Open Source & Linux Developers, register now for the AMD Developer 
Symposium. Code: EX8664 http://www.developwithamd.com/developerlab
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.