Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

shtool-mkdir(1) [linux man page]

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

NAME
shtool-mkdir - GNU shtool mkdir(1) style command SYNOPSIS
shtool mkdir [-t|--trace] [-f|--force] [-p|--parents] [-m|--mode mode] [-o|--owner owner] [-g|--group group] dir [dir ...] DESCRIPTION
This is a mkdir(1) style command with additional options and the ability to be smart if the directory already exists which is important for installation procedures. OPTIONS
The following command line options are available. -t, --trace Shows the actually involved shell commands. -f, --force Forced continuation and no complaints if directory already exists. Default is to terminate with error. -p, --parents Automatic parent directory creation. Default is to only create the last directory in the path and fail if parents are missing. -m, --mode mode The directory mode applied to the directory, see chmod(1). Omitting mode skips this step and leaves the operating system default which is usually based on umask(1). Some directory modes require superuser privileges to be set. Default is to stick with operating system defaults. -o, --owner owner The directory owner name or id applied to the directory, see chown(1). This option requires superuser privileges to execute. Default is to skip this step and leave the operating system default which is usually based on the executing uid or the parent setuid directory. -g, --group group The directory group name or id applied to the directory, see chgrp(1). This option requires superuser privileges to execute to the fullest extend, otherwise the choice of group is limited on most operating systems. Default is to skip this step and leave the operating system default which is usually based on the executing gid or the parent setgid directory. EXAMPLE
# Makefile install: shtool mkdir -f -p -m 755 $(bindir) shtool mkdir -f -p -m 755 $(mandir)/man1 : HISTORY
The GNU shtool mkdir command was originally written for Public Domain by Noah Friedman and later revised by Ralf S. Engelschall <rse@engelschall.com> in 1999 for inclusion into GNU shtool. SEE ALSO
shtool(1), mkdir(1). 18-Jul-2008 shtool 2.0.8 SHTOOL-MKDIR.TMP(1)

Check Out this Related Man Page

SHTOOL-TARBALL.TMP(1)					      GNU Portable Shell Tool					     SHTOOL-TARBALL.TMP(1)

NAME
shtool-tarball - GNU shtool command for rolling standardized tarballs SYNOPSIS
shtool tarball [-t|--trace] [-v|--verbose] [-o|--output tarball] [-c|--compress prog] [-d|--directory directory] [-u|--user user] [-g|--group group] [-e|--exclude pattern] path [path ...] DESCRIPTION
This command is for rolling input files under path into a distribution tarballs which can be extracted by tar(1). The four important aspects of good open source software tarballs are: (1) unpack into a single top-level directory, (2) top-level directory corresponds to the tarball filename, (3) tarball files should be sorted and (4) arbitrary names for file owner and group. OPTIONS
The following command line options are available. -v, --verbose Display some processing information. -t, --trace Enable the output of the essential shell commands which are executed. -o, --output tarball Output tarball to file tarball. -c, --compress prog Pipe resulting tarball through compression program prog. -d, --directory directory Sets the top-level directory into which the tarball unpacks. By default it is tarball without the trailing ".tar.*" extension. -u, --user user The user (owner) of files and directories in the tarball to user. -g, --group group The group of files and directories in the tarball to group. -e, --exclude pattern Exclude files and directories matching comma-separated list of regex pattern from the tarball. Directories are expanded before the filtering takes place. The default filter pattern is ""CVS,\.cvsignore,\.svn,\.[oa]$"". EXAMPLE
# Makefile.in dist: ... V=`shtool version -d short ...`; shtool tarball -o foobar-$$V.tar.gz -c 'gzip -9' -u bar -g gnu -e 'CVS,.cvsignore' . HISTORY
The GNU shtool tarball command was originally written by Ralf S. Engelschall <rse@engelschall.com> in 1999 for GNU shtool. SEE ALSO
shtool(1), tar(1), compress(1). 18-Jul-2008 shtool 2.0.8 SHTOOL-TARBALL.TMP(1)
Man Page