sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

xinstall.1 (1546B)


      1 .Dd 2016-24-27
      2 .Dt INSTALL 1
      3 .Os sbase
      4 .Sh NAME
      5 .Nm install
      6 .Nd copy files and set attributes
      7 .Sh SYNOPSIS
      8 .Nm
      9 .Op Fl g Ar group
     10 .Op Fl o Ar owner
     11 .Op Fl m Ar mode
     12 .Po
     13 .Fl d Ar dir ...
     14 |
     15 .Op Fl D
     16 .Po
     17 .Fl t Ar dest
     18 .Ar source ...
     19 |
     20 .Ar source ...
     21 .Ar dest
     22 .Pc
     23 .Pc
     24 .Sh DESCRIPTION
     25 .Nm
     26 copies
     27 .Ar source
     28 to
     29 .Ar dest .
     30 If more than one
     31 .Ar source
     32 is given
     33 .Ar dest
     34 is treated as a directory. Otherwise
     35 .Ar dest
     36 is treated as a filename.
     37 .Nm
     38 can also change the attributes of the copies.
     39 .Sh OPTIONS
     40 .Bl -tag -width Ds
     41 .It Fl d
     42 Create the directories
     43 .Ar dir .
     44 .It Fl D
     45 Create missing parent directories to
     46 .Ar dest .
     47 If
     48 .Ar dest
     49 is to be treated as a directory, it is created too if missing.
     50 .It Fl g Ar group
     51 Change the installed files' group to
     52 .Ar group .
     53 This may be a group name or a group identifier.
     54 .It Fl m Ar mode
     55 Change the file modes. Both numerical and symbolic
     56 values are supported. See
     57 .Xr chmod 1
     58 for the syntex.
     59 Default mode 0755. If a file has the mode 0644 and
     60 is copied with
     61 .It Fl o Ar owner
     62 Change the installed files' owner to
     63 .Ar owner .
     64 This may be a user name or a user identifier.
     65 .It Fl t Ar dest
     66 Copy files into the directory
     67 .Ar dest .
     68 .Nm install ,
     69 the copy's mode will be 0755 unless
     70 .Fl m
     71 is used to select another mode. When the symbolic
     72 notation is used, the base mode is 0000.
     73 .El
     74 .Sh SEE ALSO
     75 .Xr chmod 1 ,
     76 .Xr chown 1 ,
     77 .Xr cp 1 ,
     78 .Xr mkdir 1
     79 .Sh STANDARDS
     80 The
     81 .Nm
     82 utility is not standardized. This implementation is a subset
     83 of the GNU implementation and a subset with extensions to
     84 the FreeBSD implementation.