source: trunk/athena/bin/install/install.1 @ 20438

Revision 20438, 2.9 KB checked in by zacheiss, 20 years ago (diff)
Change meaning of -d flag to create directories rather than unlink files after installing them. Inspired by the python "make install" rule depending on this behavior.
Line 
1.\" $Id: install.1,v 1.2 2004-04-30 04:37:41 zacheiss Exp $
2.\"
3.\" Copyright (c) 1987 Regents of the University of California.
4.\" All rights reserved.
5.\"
6.\" Redistribution and use in source and binary forms are permitted
7.\" provided that the above copyright notice and this paragraph are
8.\" duplicated in all such forms and that any documentation,
9.\" advertising materials, and other materials related to such
10.\" distribution and use acknowledge that the software was developed
11.\" by the University of California, Berkeley.  The name of the
12.\" University may not be used to endorse or promote products derived
13.\" from this software without specific prior written permission.
14.\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
15.\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
16.\" WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
17.\"
18.\" Copyright 1996 by the Massachusetts Institute of Technology.
19.\"
20.\" Permission to use, copy, modify, and distribute this
21.\" software and its documentation for any purpose and without
22.\" fee is hereby granted, provided that the above copyright
23.\" notice appear in all copies and that both that copyright
24.\" notice and this permission notice appear in supporting
25.\" documentation, and that the name of M.I.T. not be used in
26.\" advertising or publicity pertaining to distribution of the
27.\" software without specific, written prior permission.
28.\" M.I.T. makes no representations about the suitability of
29.\" this software for any purpose.  It is provided "as is"
30.\" without express or implied warranty.
31.\"
32.TH INSTALL 1 "December 4, 1996"
33.UC 5
34.SH NAME
35install \- install binaries
36.SH SYNOPSIS
37.B install
38[
39.B \-c
40] [
41.B \-d
42] [
43.B \-m
44mode ] [
45.B \-o
46owner ] [
47.B \-g
48group ] [
49.B \-s
50] file1 file2; or file1 ... fileN directory
51.SH DESCRIPTION
52The file(s) are copied to the target file or directory.  If the
53destination is a directory and the -d flag is given, the directory is
54created.  Otherwise, the \fIfile\fP is moved into \fIdirectory\fP with
55its original file-name. If the target file already exists, it is replaced.
56.PP
57The \fB-c\fP option is present for compatibility only; it has no
58effect.
59.PP
60The \fB-d\fP option causes all components of the specified directory to
61be created if they do not already exist.
62.PP
63The mode is set to 755; the \fB-m\fP option may be used to specify
64an alternate mode.
65.PP
66The \fB-o\fP and \fB-g\fP options may be used to specify an owner
67and/or group, respectively.
68.PP
69The \fB-s\fP option causes the file to be stripped.  If the file
70cannot be stripped, it will still be installed.
71.PP
72\fIInstall\fP refuses to move a file onto itself.
73.PP
74Installing ``/dev/null'' creates an empty file.
75.SH "RETURN VALUE"
76Upon successful completion a value of 0 is returned.  Otherwise, a
77value of 1 is returned.
78.SH "SEE ALSO"
79chgrp(1), chmod(1), cp(1), mv(1), strip(1), chown(8)
Note: See TracBrowser for help on using the repository browser.