PAGE DATE 19990730

NAME - contract

USAGE
contract directory

DESCRIPTION

contract removes a directory name without removing it's contents. This is accomplished by mv'ing the contents of the dir into the parent dir. The assumption is that if dirs of the same name exist their contents are similar and are to be joined in the destination dir. This process is repeated for all subdirs of the contracted directory, as necessary due to name conflicts. contract is a Bash script using recursion. It has not been tested in any rigorous way, but is included for expedience and as an example of recursion with the Bash directory stack. Where a name conflict is not directory-to-directory the source file or dir is suffixed with ".contract".

contract was somewhat useful in configuring the cLIeNUX interim X package.

RIGHTS
contract and this seedoc are Copyright 1999 Rick Hohensee.
The contract script and this file are released for redistribution only as part of an intact entire cLIeNUX Core.