Here's the thing: I have several programs and scripts in a software distribution that I am building, several of which call one another in very elegant arrangements. Lets assume I only have one program and one script in this package. Lets also assume:
My package is in:
My program is in:
My script is in:
How can I make sure that if a user downloads a tarball of my package that prog and scr can find each other, while allowing the user to run either from anywhere?
If I use relative paths (ie, ../scripts/src, or ../programs/prog), then it only works if the user invokes prog or script in the directory in which they are located. If I specify an absolute path, then the user has to install pkg into the directory I specify.
1) I don't want to force the user to do a "make install". That should not be necessary with this tool.
2) I don't think I want to require them to add the directories for prog/scr to their path either, or make a symbolic link...
Maybe this is something trivial in UNIX that I don't know about, but I'm stumped.