scsh-users
[Top] [All Lists]

Re: nesting package files, howto?

To: scsh-news@zurich.ai.mit.edu
Subject: Re: nesting package files, howto?
From: kelsey2@s48.org (Richard Kelsey)
Date: 2 Apr 2002 07:03:49 -0800
Organization: http://groups.google.com/
mmc@maruska.dyndns.org (Michal Maru?ka wrote in message 
news:<m24rivcjh1.fsf@linux11.maruska.tin.it>...
> does the configuration language allow including other files (w/ the
> configuration-language code)? i would like to keep separate files (for example
> other people's package files), but still be able to load only the main one 
> from
> my scripts.

There isn't any include mechanism.  You can load multiple configuration
files by creating an exec file and loading that.  For example, if
load-all.scm contains
    (config)
    (load "my-packages.scm")
    (load "other-packets.scm")
then 
    ,exec ,load load-all.scm
will load both package files.  I don't know how you would load a file
into the exec package from a Scsh script.

See http://s48.org/0.57/manual/s48manual_19.html for a little bit more
documentation on ,exec.
                                  -Richard Kelsey

<Prev in Thread] Current Thread [Next in Thread>