[CM] cm cvs, clm integration...

Rick Taube taube@uiuc.edu
Mon, 12 Dec 2005 19:30:33 -0600


>
> I can do something like this (called from the startup script):
> ====
>   (defvar *cm-directory* "/usr/share/common-lisp/source/cm/")
>   (defvar *cm-bin-directory* "/usr/lib/sbcl/cm/")
>   (load "/usr/share/common-lisp/source/cm/src/cm.lisp")
>   (cm)
> ====
> and Common Music loads happily...

nando - this method should still work for cm cvs sources.


> Now, how do I best integrate clm (and later cmn, etc) into this scheme?

if you want this startup script to do all the loading you can just add 
these lines:

(defvar *clm-directory* "/usr/share/common-lisp/source/clm/")
(defvar *clm-bin-directory* "/usr/lib/sbcl/clm/")
(load (concatenate 'string *clm-directory* "all.lisp"))
(defvar *cmn-directory* "/usr/share/common-lisp/source/cmn/")
(defvar *cmn-bin-directory* "/usr/lib/sbcl/cmn/")
(load (concatenate 'string *cmn-directory* "cmn-all.lisp"))


OTOH if you want to load clm using ASDF -- or if you want users to be 
able to load clm later "on demand" with use-system --
then you should (1) define the clm/cmn bin direcory vars (so 
clm-3/all.lisp can find its fasls) and (2) push the source directories 
onto asdf:*central-registry*:

(defvar *clm-bin-directory* "/usr/lib/sbcl/clm/")
(push "/usr/lib/sbcl/clm/" asdf:*central-registry*)

once the directrry is pushed onto asdf:*central-registry* you should be 
able to load it using asdf or use-system (it amounts to the same thing)

to load it using asdf:

	(asdf:operate 'asdf:load-source-op :clm)

to load it in cm

	(use-system :clm)






> This is where things used to live:
>   clm source: /usr/share/common-lisp/source/clm/
>   clm binaries: /usr/lib/sbcl/clm/
> Note that the source for clm is not inside the cm source directory.
>
> I have tried several things and nothing seems to work quite right
> without having to change sources and hardwire paths. Binaries for both
> cm and clm have already been compiled, are up to date, and live in the
> directories outlined above.
>
> More details later as I try more things...
> -- Fernando
>
>
> _______________________________________________
> Cmdist mailing list
> Cmdist@ccrma.stanford.edu
> http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist