Contributed by Gautam Tirumala
Usage:\n\
install [-lcpsz#] [-o owner] [-g group] [-m mode] [-S stack] [file1] file2\n\
install [-lcpsz#] [-o owner] [-g group] [-m mode] [-S stack] file ... dir\n\
- install -d [-o owner] [-g group] [-m mode] directory\n");
+ install [-c] -d [-o owner] [-g group] [-m mode] directory\n");
exit(1);
}
}
}
/* Some options don't mix. */
- if (dflag && (cflag || lflag || strip)) usage();
+ if (dflag && (lflag || strip)) usage();
/* Don't let the user umask interfere. */
umask(000);
.IR file " ... " dir
.br
.ti -5
-.B install \-d
+.B install
+.RB [ \-c ]
+.B \-d
.RB [ \-o
.IR owner ]
.RB [ \-g
.B \-l
is not given. With
.BR \-l ,
-the file is copied if the link fails.
+the file is copied if the link fails. This option is also allowed with
+.BR \-d .
+In this case the
+.BR \-c
+is ignored.
.TP
.B \-p
Preserve timestamp on source file or directory.