STRIPLN(1M) RISC/os Reference Manual STRIPLN(1M)
NAME
stripln - strip old links for update installation
SYNTAX
stripln [ -t timestamp ] bomfile ...
DESCRIPTION
stripln is used to remove certain files from the currently
installed version of a software package prior to installing
a new version as an update. When used with the -t option,
it can also be used to remove all files named in a set of
bomfiles which bear a particular file modification times-
tamp.
Each of the bomfiles in the argument list is read. For each
file mentioned in the bomfile, it is removed on the target
system if:
1) The -t option is was specified and the modifcation times-
tamp on the file matches the -t option argument. If the
-t option is not specified, then the file will be removed
if either of the following conditions is met:
2) The file in the bom is not a symbolic link and there is a
file present on the system with the same pathname which
is a symbolic link. This is done to prevent a file which
has changed from a symbolic link to something else from
being installed in the wrong place during an update,
since the existing symbolic link would be followed when
the updated file is extracted from the tar archive.
3) The file is the ``master link'' (i.e., has a null link
target field in the bom entry) of a multiply linked file
(i.e., is a plain file with a link count greator than one
in the bom entry.) This is to break links where version-
specific links are to be restablished when an update is
installed, without altering existing version-specific
links. For instance, consider a compiler update release
where /usr/bin/cc1.21 is presently hard-linked to
/usr/bin/cc on the target system, and /usr/bin/cc1.22 is
to be installed; in this case, the link between
/usr/bin/cc1.21 and /usr/bin/cc must be broken prior to
installing /usr/bin/cc1.22, or the /usr/bin/1.21 file
will be linked to /usr/bin/1.22.
FILES
/usr/pkg/bin/stripln
SEE ALSO
bom(4) in the Programmer's Reference Manual.
Printed 11/19/92 Page 1