summaryrefslogtreecommitdiff
path: root/src/install.c
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2016-11-02 23:56:53 +0000
committerPádraig Brady <P@draigBrady.com>2016-11-07 17:09:35 +0000
commit7ce2589b77d6f78548d6d025ab7d8f5a57199ef8 (patch)
tree89ff7556f74634a77204ecec8551224a32099d3f /src/install.c
parentec946718ae7c329ba4d4ef46a467bba125c141a6 (diff)
downloadcoreutils-7ce2589b77d6f78548d6d025ab7d8f5a57199ef8.tar.xz
maint: refactor printing of backup suffix --help
* src/system.h (emit_backup_suffix_note): A new function to output the backup suffix info. The strings are unchanged, so translations are not impacted. * src/cp.c (usage): Use the new function. * src/ln.c (usage): Likewise. * src/mv.c (usage): Likewise. * src/install.c (usage): Likewise.
Diffstat (limited to 'src/install.c')
-rw-r--r--src/install.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/install.c b/src/install.c
index b4b282aae..4fa4bb3d3 100644
--- a/src/install.c
+++ b/src/install.c
@@ -681,19 +681,7 @@ In the 4th form, create all components of the given DIRECTORY(ies).\n\
fputs (HELP_OPTION_DESCRIPTION, stdout);
fputs (VERSION_OPTION_DESCRIPTION, stdout);
- fputs (_("\
-\n\
-The backup suffix is '~', unless set with --suffix or SIMPLE_BACKUP_SUFFIX.\n\
-The version control method may be selected via the --backup option or through\n\
-the VERSION_CONTROL environment variable. Here are the values:\n\
-\n\
-"), stdout);
- fputs (_("\
- none, off never make backups (even if --backup is given)\n\
- numbered, t make numbered backups\n\
- existing, nil numbered if numbered backups exist, simple otherwise\n\
- simple, never always make simple backups\n\
-"), stdout);
+ emit_backup_suffix_note ();
emit_ancillary_info (PROGRAM_NAME);
}
exit (status);