If the user does not have administrator permissions, the default, owner, and group of the destination file will be those of the user.
The environment variable ROOT is used to locate the destination file (in the form $ROOT/usr/src/destinations). This is necessary in cases where cross generation is being done on a production system.
cpset echo /bin 0755 bin bin
cpset echo /bin
cpset echo /bin/echo
All the examples above have the same effect (assuming the user is an administrator). The file echo will be copied into /bin and will be given 0755, bin, bin as the mode, owner, and group, respectively.
cpset utilizes the file /usr/src/destinations to determine the final destination of a file. The locations file contains pairs of pathnames separated by spaces or tabs. The first name is the ``official'' destination (for example: /bin/echo). The second name is the new destination. For example, if echo is moved from /bin to /usr/bin, the entry in /usr/src/destinations would be:
/bin/echo /usr/bin/echoWhen the actual installation occurs, cpset verifies that the ``old'' pathname does not exist. If a file exists at that location, cpset issues a warning and continues. This file does not exist on a distribution tape; it is used by sites to track local command movement. The procedures used to build the source will be responsible for defining the ``official'' locations of the source.