summaryrefslogtreecommitdiff
path: root/src/install.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1993-10-19 00:00:06 +0000
committerJim Meyering <jim@meyering.net>1993-10-19 00:00:06 +0000
commit723d3d528db8b3abb05357bf5a7af7173c1636e7 (patch)
tree23fc7ea7e6b0721e7705f60a7c14bd9dcafd5eca /src/install.c
parent712ac6d5a0122dbcbc89669143580de1326f1d46 (diff)
downloadcoreutils-723d3d528db8b3abb05357bf5a7af7173c1636e7.tar.xz
merge with 3.8.4k
Diffstat (limited to 'src/install.c')
-rw-r--r--src/install.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/install.c b/src/install.c
index b9f34f33f..a5e795e3f 100644
--- a/src/install.c
+++ b/src/install.c
@@ -540,15 +540,18 @@ static void
usage (status)
int status;
{
- fprintf (status == 0 ? stdout : stderr, "\
+ if (status != 0)
+ fprintf (stderr, "Try `%s --help' for more information.\n",
+ program_name);
+ else
+ {
+ printf ("\
Usage: %s [OPTION]... SOURCE DEST (1st format)\n\
or: %s [OPTION]... SOURCE... DIRECTORY (2nd format)\n\
or: %s [OPTION]... DIRECTORY... (3nd format)\n\
",
- program_name, program_name, program_name);
-
- if (status == 0)
- printf ("\
+ program_name, program_name, program_name);
+ printf ("\
\n\
-c (ignored)\n\
-d, --directory create [leading] directories, mandatory for 3rd format\n\
@@ -558,10 +561,6 @@ Usage: %s [OPTION]... SOURCE DEST (1st format)\n\
-s, --strip strip symbol tables, only for 1st and 2nd formats\n\
--help display this help and exit\n\
--version output version information and exit\n");
-
- else
- fprintf (stderr, "Try `%s --help' for more information.\n",
- program_name);
-
+ }
exit (status);
}