Kent M Pitman <firstname.lastname@example.org> wrote:
| Ken Tilton <email@example.com> writes:
| > Kent M Pitman wrote:
| > > Having done this, you can then do
| > > (mapcar #'load '("pkgdcl.lisp" "my-defs.lisp" "my-callers.lisp"))
| > > but you can also break things up differently.
| > Add a remove-if there is a fasl with a more recent date and you have
| > ASDF beat.
| Indeed, instead of load, a better function should be used that does all
| of that, yes. I have my own source control system, and indeed it does
| that extra hair.
CMUCL's LOAD has a handy :IF-SOURCE-NEWER extension keyword:
If the file type is not specified, and both source and object files
exist, then this argument controls which is loaded:
:LOAD-OBJECT - load object file (default),
:LOAD-SOURCE - load the source file,
:COMPILE - compile the source and then load the object file, or
:QUERY - ask the user which to load.
I have a little LOAD* function that remembers args you've given
it in the past, and given no args runs through the list checking
the source FILE-WRITE-DATE against the last time LOAD* was run,
and if the source is newer that the timestamp it does
(LOAD source :IF-SOURCE-NEWER :COMPILE). So if at some point
(load* "pkgdcl.lisp" "my-defs.lisp" "my-callers.lisp")
then after that if you edit one or more of them and say just
(LOAD*), "the right thing" happens.
Yes, I use ASDF for bigger projects, but LOAD* gets me a long way
Rob Warnock <firstname.lastname@example.org>
627 26th Avenue <URL:http://rpw3.org/>
San Mateo, CA 94403 (650)572-2607