Documentation
¶
Overview ¶
Package install implements the GNU install utility, which copies files while setting their mode bits and, when possible, their owner and group. It's the tool Makefiles use to put programs in place.
The default mode of installed files and directories is 'u=rwx,go=rx,a-s', which the current umask never masks. By default the ownership of the destination is left alone, instead of becoming the one of the process like GNU does, since the runtime carries no user or group identity. Out of scope are the --strip, --strip-program, -Z/--context, --preserve-context and --debug options, which need external programs or SELinux support the runtime doesn't have.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Prog ¶
Prog is the install core utility.
func (*Prog) Run ¶
Run installs each source file, giving the destination the attributes the options ask for: the last operand names the destination, a file when there's exactly one source or a directory to copy into otherwise, -t and -T overruling that. With -d, the operands name the directories created instead.