opt_clean 2.01 - removes bad links to files under a depot directory
opt_clean [ -vqr ] [ -ddirectory ] [ -ldirectory ]
|
[ -bdirectory ] |
opt_clean is a companion to the opt_depot script that will find all links to non-existant files under the depot directory or files or packages excluded by the .exclude configuration file. This will ensure the integrity of all the links in the destination directory that point to files under the depot directory.
opt_clean will collapse any directories found that contain links to a single package and replace it with a symbolic link to that package. Also, any empty directories will be removed. These features are disabled with the -r option.
Ideally opt_clean should be run immediately before or after opt_depot is run. If this is not done, links to files that are either not there or are not desired may remain in place and garbage links will continue to collect as the depot directory and the configuration files change.
See opt_depot man page for more details on the configuration files.
|
-v -q -r |
verbose mode quiet mode (no logging) recursive unification. opt_clean will unify directories containing links to a single package into a single link to that package, and will remove empty subdirectories under the software base. |
|
|
-ddirectory -ldirectory -bdirectory |
sets the depot directory sets the log directory sets the software base directory |
All directory names should be absolute path names. Relative path names will not be accepted.