autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Proper location to install shell function libraries?


From: Ralf Corsepius
Subject: Re: Proper location to install shell function libraries?
Date: Wed, 1 Mar 2017 16:59:20 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0

On 03/01/2017 02:35 PM, Andreas Kusalananda Kähäri wrote:

My query is this: Would libexecdir be the best place to put a file that
is architecture dependent, but *not* meant to be executed separatedly
(it's a library).  Or should it actually be stored under libdir

$libexecdir is meant to take a suite's/package's "internal/sub-programs/executables/scripts" (typically with executable permissions). Think of it as a auxiliary $bindir, which is supposed not to be in $PATH.

$libdir/<subdir>/ (e.g. %libdir/<package>) is the playground a package can install more or less whatever it wants, comprising executables.

As your "scripts" don't seem to be "programs", $libdir/<subdir> probably is what you are looking for.

> (which
> I've never seen done with a shell library of functions)?
Storing script fragments or scripts in $libdir would be unusual and discussworthy, but installing these to $libdir/<packages>/ is quite common.

Ralf






reply via email to

[Prev in Thread] Current Thread [Next in Thread]