Re: Language module support modified
Bram Moolenaar <[email protected]>
| Newsgroups | gmane.comp.tools.aap.devel |
|---|---|
| Message-ID | <[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? -- Never go to the toilet in a paperless office. /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// Creator of Vim - Vi IMproved -- http://www.Vim.org \\\ \\\ Project leader for A-A-P -- http://www.A-A-P.org /// \\\ Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html /// ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf