[Top][All Lists]

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

Proper location to install shell function libraries?

From: Andreas Kusalananda Kähäri
Subject: Proper location to install shell function libraries?
Date: Wed, 1 Mar 2017 14:35:04 +0100
User-agent: NeoMutt/20170206 (1.7.2)


I'm hoping this is the correct forum for this query.  If not, kindly
point me elsewhere.

I'm developing a tiny set of shell scripts (sh, ksh93, bash) for use in
testing behaviour of shell constructs under various shells.

The scripts use GNU autoconf for finding the absolute paths to either
ksh93 or bash on the system it's being installed on, and for simply
placing a bug reporting address and project version number in the
generated scripts (really, nothing fancy at all).

The scripts make use of a common set of shell functions, defined in
their own file.  This is currently sourced like this:

    . "@libexecdir@/toolbox.shlib"

Then, in the file, I have a line like

    AC_CONFIG_FILES([src/script], [chmod +x src/script])

for each script, so that it's generated from the corresponding
file upon running configure.

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 (which
I've never seen done with a shell library of functions)?


Attachment: signature.asc
Description: PGP signature

reply via email to

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