From: Pádraig Brady Date: Sat, 2 Jan 2016 22:22:55 +0000 (+0000) Subject: doc: mention in more places that -D will create --target-directory X-Git-Tag: v8.25~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1dd02b4f8c459a4e720343a3f2d1eedf9bdbe657;p=thirdparty%2Fcoreutils.git doc: mention in more places that -D will create --target-directory * src/install.c (usage): Mention this commonly required functionality in the -D option description. * doc/coreutils.texi (install invocation): Likewise for the --target-directory description. --- diff --git a/doc/coreutils.texi b/doc/coreutils.texi index 62be66a5c0..76e4182524 100644 --- a/doc/coreutils.texi +++ b/doc/coreutils.texi @@ -9024,6 +9024,7 @@ Program used to strip binaries. @optBackupSuffix @optTargetDirectory +Also specifying the @option{-D} option will ensure the directory is present. @optNoTargetDirectory diff --git a/src/install.c b/src/install.c index 3f0ca74c9d..2ff279c01c 100644 --- a/src/install.c +++ b/src/install.c @@ -632,6 +632,7 @@ In the 4th form, create all components of the given DIRECTORY(ies).\n\ "), stdout); fputs (_("\ -D create all leading components of DEST except the last,\n\ + or all components of --target-directory,\n\ then copy SOURCE to DEST\n\ -g, --group=GROUP set group ownership, instead of process' current group\n\ -m, --mode=MODE set permission mode (as in chmod), instead of rwxr-xr-x\n\