
| Opt.config |
Opt.config is the configuration file that provides opt_depot with the information it needs to perform its job.
When the setup.sh script is run, the user is prompted for the software base, depot and log directories, which are then added to the configuration file. The remainder of opt.config consists of default values that reflect which directories will be linked by opt_depot, and which directories will be candidates for recursive linking. These default values can be changed by editing the configuration file itself.
During the installation process this file is placed in the /etc directory of the opt_depot-2.0 package.
Here is a breakdown of the function of each line in opt.config, their default values and a listing of the scripts that use them:
| Heading | Function | Used By | Standard Value |
| Base: | Specifies the software base directory | All | /opt |
| Depot: | Specifies the depot directory | All | /opt/depot |
| Log: | Specifies the log directory | All | /logs/opt_depot |
| Subdirs: | List containing the directories to be linked normally. |
opt_depot opt_clean |
bin, include, info, man, lib |
| Recurse: | List containing the directories that are candidates for recursive linking. |
opt_depot | include/ |
Even if directories listed after Recurse:, they will not undergo recursive linking unless opt_depot is run with the -r option.
Similarly, opt_clean will recursively examine and merge directories only if the -r option has been passed to it, and even then it will only recursively merge and/or remove directories that have been created by opt_depot. Otherwise, opt_clean will simply perform its normal cleaning duties.