Open jaredd opened 7 years ago
This looks like it's not portable to some other shells, but I like some of the concepts.
For this to truly work there needs to be some extra support for environment variable management from the virtualenv scripts. I'll see what I can do there. In the meantime, why can't there be several templates for scripts for different shells? I feel like this is something that won't have to be updated too often (famous last words). The setup-env scripts will also need an "undo" feature so one can switch b/w different OOT mixins through the environment.
This will also help with moving prefixes, see #422
Often I find that I install OOT modules to a directory separate from my base gnuradio install in order to keep my base GR install clean and make nuking my OOT easy if I need to completely rebuild and reinstall. The setup_env.sh is almost appropriate for also adding the OOT paths to the environment to pull in those blocks and libs except it explicitly uses the prefix directory in its paths. Below is a portion of an (annotated) alternative setup_env.sh that could be copied to the appropriate OOT directory and operate as desired.