Merge Installed Programs Into One Directory

From VrlWiki
Revision as of 17:46, 22 July 2010 by Brad Berg (talk | contribs)
Jump to navigation Jump to search

On Linux systems you can create links to installed programs that are in a single directory. Some people find this convenient when accessing programs via the PATH variable. Note that these utilities do not detect program name collisions. You will have to resolve collisions manually.

The names of the programs follow the conventions for the build system. The links are simplified base names without suffixes so they are easy to enter from a command line. For details run:

> $G/common/build/kit/linkbins.py


  • Create or update links to programs in one directory.
> $G/common/build/kit/linkbins.py  <Source/>  <Link/>

The Source/ directory contains a collection of programs.

The Link/ directory will be populated with links to the programs.


  • Create or update links to programs in an install directory tree.
> $G/common/build/kit/linkinstall.py  <Link/>

The Link/ directory will be populated with links to the programs in: $G/install_linux/bin/*/*

Note that $G must be set before running this script.