Walter C. Pelissero | 27 Nov 2003 21:21
Picon

new ops

To play a bit with ASDF I've been writing a couple of operations that
I find fairly useful, so I thought about sharing them.

Enjoy,

-- 
walter pelissero
http://www.pelissero.de

----------------------------------------------------------------------
;;;  asdfadd.lisp --- addenda to asdf

;;; This file adds three operations to ASDF standard repertoire:
;;; pack-op, tag-op and stat-op.  The first one creates a tar/zip
;;; archive of the files in a system.  The second one creates a tag
;;; file (Emacs or Vi compatible).  The last one, stat-op, gives some
;;; statistics on the system files.  Check the documentation of each
;;; class for further details.
;;;
;;; Usage:
;;;   (asdf:oos 'asdf:pack-op :sysname &key (archive-type :tgz) (output-file nil))
;;;   (asdf:oos 'asdf:tag-op :sysname &key (tags-type :etags))
;;;   (asdf:oos 'asdf:stat-op :sysname &key (source-only nil))

(in-package :asdf)

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; A few bits lifted from CLOCC's port system, so that ASDF can stay
;;; independent.

(Continue reading)

Daniel Barlow | 28 Nov 2003 19:22

Re: new ops

"Walter C. Pelissero" <walter <at> pelissero.de> writes:

> To play a bit with ASDF I've been writing a couple of operations that
> I find fairly useful, so I thought about sharing them.

Looks interesting and potentially useful to someone. 

I won't be merging these into asdf itself, for a few reasons.

- the licence problem that Marco pointed out (asdf currently uses the
  MIT "nearly Public Domain" licence, and I'm unwilling to change it
  to anything more complicated)

- the code that you've lifted is in itself a portability nightmare.  I
  don't want asdf to follow the #+every line #+has feature
  #+conditionals track that mk-defsystem 3 ended up on: I wrote it
  expressly to get away from that

- asdf is portable to operating systems which don't (usually) have
  tar and wc, where these tools would be inappropriate

Don't take this as a rejection, though, please.  What I suggest you do
is package them separately.  I'd recommend 

(i) that you don't add to the :asdf package - create your own package
that uses it.  If there are asdf internal symbols you need to access,
I'm very happy to talk about ways of exporting that functionality.

(ii) as far as I can see you're only using the clocc stuff to set the
current directory (and in a fashion which won't play nice with
(Continue reading)

Walter C. Pelissero | 2 Dec 2003 19:26
Picon

Re: new ops

[ Just realized I've answered to Daniel only, forgetting to
  copy to the mailing list.  So here is the message again complete
  of its typos. ]

Daniel Barlow writes:
 > What I suggest you do is package them separately.

Even though the addendum introduces a bit of ASDF's namespace
pollution, I'm not quite convinced that those three -ops would deserve
a package on its own, expecially when so tightly coupled with ASDF
itself: component-system and input-files are not exported.

 > (ii) as far as I can see you're only using the clocc stuff to set the
 > current directory

Right, the directory-stuff wasn't strictly necessary.  That has been
amended, and the few lines of CLOCC's code removed.

For those who care, the new version is at:

  http://www.pelissero.de/software/asdfa.lisp

--

-- 
walter pelissero
http://www.pelissero.de

-------------------------------------------------------
This SF.net email is sponsored by OSDN's Audience Survey.
Help shape OSDN's sites and tell us what you think. Take this
five minute survey and you could win a $250 Gift Certificate.
(Continue reading)

Marco Baringer | 28 Nov 2003 19:01
Picon

Re: new ops

"Walter C. Pelissero" <walter <at> pelissero.de> writes:

> To play a bit with ASDF I've been writing a couple of operations that
> I find fairly useful, so I thought about sharing them.
>
> Enjoy,

cool stuff.

I would just like to warn people that clocc is released under the
LGPL (not the LLGPL).

--

-- 
-Marco
Ring the bells that still can ring.
Forget your perfect offering.
There is a crack in everything.
That's how the light gets in.
     -Leonard Cohen

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/

Gmane