I have a tiny project that configures and installs some shell scripts using GNU autotools.
Now, the scripts will have to source a common file containing some shell functions.
Where should this file be installed by make install
?
According to "Variables for Installation Directories", libexecdir
is for executable files (the file containing the shell functions is not an executable in itself) and datadir
is for architecture-independent data (this file depends on the architecture).
Is there any precedent for using any of these two paths (or any other installation path) for installing a file containing only shell functions? These functions are not meant to be used separately at the moment.
/usr/local/share
or/usr/share
? – Rui F Ribeiro Feb 26 '17 at 10:23libexec
my second guess would be/usr/local/lib/your_app
. After all it's a library, albeit one of shell functions. – Satō Katsura Feb 26 '17 at 11:26pkglibexecdir
(orlibexecdir
if I want other packages to use them, too). – Synoli Apr 20 '18 at 6:50