summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2016-01-02 22:22:55 +0000
committerPádraig Brady <P@draigBrady.com>2016-01-03 12:58:39 +0000
commit1dd02b4f8c459a4e720343a3f2d1eedf9bdbe657 (patch)
tree6454f5378fcf20fcd2f8d5113c369bf9b445210f
parent73055581c9ef167faff210338775f668277603ee (diff)
downloadcoreutils-1dd02b4f8c459a4e720343a3f2d1eedf9bdbe657.tar.xz
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.
-rw-r--r--doc/coreutils.texi1
-rw-r--r--src/install.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/doc/coreutils.texi b/doc/coreutils.texi
index 62be66a5c..76e418252 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 3f0ca74c9..2ff279c01 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\