Ed Kademan <kademan@phz.com> wrote in message news:<ulghef1z98h.fsf@phz.com>...
> What is a good strategy for installing local modules for scsh? I'd
> like to package up code so that different programs can share via the
> "-lm" command line switch but ideally I'd like to not have to specify
> the complete path names.
I get away with just using one complete path name by keeping all my
own module declarations in one file, packages.scm. Then "-lm
/home/djbane/scm/packages.scm" takes care of it.
This is less work for me than you'd think because I use nuweb
(http://nuweb.sf.net/) to write literate scripts. I just define a
standard "interpreter trigger" macro, with the -lm flag, and insert
this at the top of all my scripts.
:-) It's more fun to write code that writes code.
> For example when you "use" and "require" packages in perl that
> language automatically searches for the corresponding files in a
> user-modifiable path of directories, one of whose entries is a
> site-specific directory that doesn't get trashed every time you
> upgrade.
I'm not aware of anything like the PERL5LIB environment variable.
|