summaryrefslogtreecommitdiff
path: root/src/install.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1996-01-20 12:37:12 +0000
committerJim Meyering <jim@meyering.net>1996-01-20 12:37:12 +0000
commit156a61c86d6a598eada0d63761a575c691f5165e (patch)
treea7afe36e90d8d12959f17486995f2358c8ac0127 /src/install.c
parent5850877aea145ed57f4eec5c0c26993088531e6a (diff)
downloadcoreutils-156a61c86d6a598eada0d63761a575c691f5165e.tar.xz
(usage): Copy backup/suffix stuff from ln.c.
(main): Handle 'S' in getopt switch.
Diffstat (limited to 'src/install.c')
-rw-r--r--src/install.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/install.c b/src/install.c
index 08cc9265f..220c5e649 100644
--- a/src/install.c
+++ b/src/install.c
@@ -205,6 +205,9 @@ main (int argc, char **argv)
case 'o':
owner_name = optarg;
break;
+ case 'S':
+ simple_backup_suffix = optarg;
+ break;
case 'V':
version = optarg;
break;
@@ -592,7 +595,14 @@ format, make all components of the given DIRECTORY(ies).\n\
-S, --suffix=SUFFIX override the usual backup suffix\n\
-V, --version-control=WORD override the usual version control\n\
--help display this help and exit\n\
- --version output version information and exit\n"));
+ --version output version information and exit\n\
+\n\
+The backup suffix is ~, unless set with SIMPLE_BACKUP_SUFFIX. The\n\
+version control may be set with VERSION_CONTROL, values are:\n\
+\n\
+ t, numbered make numbered backups\n\
+ nil, existing numbered if numbered backups exist, simple otherwise\n\
+ never, simple always make simple backups\n"));
}
exit (status);
}