I have a NFS-mounted home directory where I keep some executable programs for different OS and machine architectures. (A particular executable is built for one particular architecture only.) I have to store these executables in different bin directories (one bin directory for each OS/machine combination) so that I can easily put those directories in
Is there a conventional place to put executables for a particular OS/architecture?
The best I could find was MultiarchSpec - Filesystem layout | Ubuntu Wiki. It's only for libraries, e.g.
/lib/x86_64-linux-gnu - it doesn't say anything about executables.
Currently I have this:
d=~/".local/$(uname | tr A-Z a-z)-$(uname -m | tr A-Z a-z)/bin" if [ -d "$d" ]; then export PATH="$PATH":"$d" fi