Re: Language module support modified

Johan Svedberg <[email protected]>
Newsgroups gmane.comp.tools.aap.devel
Message-ID <[email protected]>
* Sep 30 13:10 Bram Moolenaar <[email protected]>:
>
> Aschwin Marsman wrote:
>
> > Quoting Adriaan de Groot <adridg-FlD2LfDziEhmR6Xm/[email protected]>:
> > > On Tue, 30 Sep 2003, Bram Moolenaar wrote:
> > > > > Like someone else already pointed out, /usr/local is rather
> > > > > unportable. I presume you mean "the OS-specific place for "extra
> > > > > software"".
> > > >
> > > > And how would Aap find out where that is?
> > > >
> > > > I could add a variable in default.aap, but I found one place where the
> > > > /usr/local/... directory is used without reading it: filetype detection.
> > > > Perhaps this is something that must be done when installing Aap?
> >
> > > 	if os == "posix":
> > > 		if test -d "/opt":
> > > 			os_local_dir="/opt"
> > > 		else:
> > > 			os_local_dir="/usr/local"
> > > 	else:
> > > 		os_local_dir="C:/WINDOWS/SYSTEM"
> > >
> > > That's a start, isn't it?
> >
> > This is a start, although it's administrator specific if he
> > prefers /opt i.s.o. /usr/local. So we can choose a default,
> > but it should be possible for the user to override this choice,
> > e.g. with an environment variable.
> >
> > Below is a long explanation from the (Linux) Filesystem Hierarchy Standard
> > about the use of /usr/local & /opt.
>
> >From this I understand that "/opt/aap" would hold the installed Aap
> program.  Thus it contains the installed modules and tools, not the ones
> that a system administrator adds for his system.
>
> Also, suppose that a Linux distribution decides to include Aap in the
> base system (one can dream :-), isn't /usr/local/share the appropriate
> place to put additional tools and modules?

I think this will differ depending on the distribution. Atleast on
Debian I think it would be placed in /usr/share while others would place
it in /usr/local/share.

-- 
Johan Svedberg, [email protected], http://johan.svedberg.pp.se/


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.