cpset -- install object files in binary directories


cpset [-o] object directory [mode owner group]


cpset is used to install the specified object file, object in the directory, directory. The mode, owner, and group of the file, object, may be specified on the command line. If these parameters are omitted, there are two possible results: The -o argument forces cpset to move object to OLDobject in the destination directory before installing the new object file.

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/echo
When 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.

See also

install(ADM), make(CP)

Standards conformance

cpset is conformant with AT&T SVID Issue 2.
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003