1SHTOOL-MKDIR.TMP(1)         GNU Portable Shell Tool        SHTOOL-MKDIR.TMP(1)
2
3
4

NAME

6       shtool mkdir - GNU shtool mkdir(1) style command
7

SYNOPSIS

9       shtool mkdir [-t|--trace] [-f|--force] [-p|--parents] [-m|--mode mode]
10       [-o|--owner owner] [-g|--group group] dir [dir ...]
11

DESCRIPTION

13       This is a mkdir(1) style command with additional options and the
14       ability to be smart if the directory already exists which is important
15       for installation procedures.
16

OPTIONS

18       The following command line options are available.
19
20       -t, --trace
21           Shows the actually involved shell commands.
22
23       -f, --force
24           Forced continuation and no complaints if directory already exists.
25           Default is to terminate with error.
26
27       -p, --parents
28           Automatic parent directory creation. Default is to only create the
29           last directory in the path and fail if parents are missing.
30
31       -m, --mode mode
32           The directory mode applied to the directory, see chmod(1). Omitting
33           mode skips this step and leaves the operating system default which
34           is usually based on umask(1). Some directory modes require
35           superuser privileges to be set. Default is to stick with operating
36           system defaults.
37
38       -o, --owner owner
39           The directory owner name or id applied to the directory, see
40           chown(1).  This option requires superuser privileges to execute.
41           Default is to skip this step and leave the operating system default
42           which is usually based on the executing uid or the parent setuid
43           directory.
44
45       -g, --group group
46           The directory group name or id applied to the directory, see
47           chgrp(1). This option requires superuser privileges to execute to
48           the fullest extend, otherwise the choice of group is limited on
49           most operating systems.  Default is to skip this step and leave the
50           operating system default which is usually based on the executing
51           gid or the parent setgid directory.
52

EXAMPLE

54        #   Makefile
55        install:
56            shtool mkdir -f -p -m 755 $(bindir)
57            shtool mkdir -f -p -m 755 $(mandir)/man1
58             :
59

HISTORY

61       The GNU shtool mkdir command was originally written for Public Domain
62       by Noah Friedman and later revised by Ralf S. Engelschall
63       <rse@engelschall.com> in 1999 for inclusion into GNU shtool.
64

SEE ALSO

66       shtool(1), mkdir(1).
67

POD ERRORS

69       Hey! The above document had some coding errors, which are explained
70       below:
71
72       Around line 186:
73           You forgot a '=back' before '=head1'
74
75
76
7718-Jul-2008                      shtool 2.0.8              SHTOOL-MKDIR.TMP(1)
Impressum