diff options
author | Jim Meyering <jim@meyering.net> | 1996-10-05 16:37:57 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1996-10-05 16:37:57 +0000 |
commit | f04044ed8678a899a8dfa8434b325eb4b146da0f (patch) | |
tree | 52b90966431e8249a3648fe32676afdbff38e171 | |
parent | 09711894fec24cb51dbe40c3040bce346db0f780 (diff) | |
download | coreutils-f04044ed8678a899a8dfa8434b325eb4b146da0f.tar.xz |
(main): update --version output to conform to coding standard
-rw-r--r-- | src/basename.c | 2 | ||||
-rw-r--r-- | src/chroot.c | 2 | ||||
-rw-r--r-- | src/date.c | 2 | ||||
-rw-r--r-- | src/dirname.c | 2 | ||||
-rw-r--r-- | src/echo.c | 2 | ||||
-rw-r--r-- | src/env.c | 2 | ||||
-rw-r--r-- | src/expr.c | 2 | ||||
-rw-r--r-- | src/factor.c | 2 | ||||
-rw-r--r-- | src/hostname.c | 2 | ||||
-rw-r--r-- | src/id.c | 2 | ||||
-rw-r--r-- | src/logname.c | 2 | ||||
-rw-r--r-- | src/nice.c | 2 | ||||
-rw-r--r-- | src/pathchk.c | 2 | ||||
-rw-r--r-- | src/printenv.c | 2 | ||||
-rw-r--r-- | src/printf.c | 2 | ||||
-rw-r--r-- | src/pwd.c | 2 | ||||
-rw-r--r-- | src/seq.c | 2 | ||||
-rw-r--r-- | src/sleep.c | 2 | ||||
-rw-r--r-- | src/stty.c | 2 | ||||
-rw-r--r-- | src/su.c | 2 | ||||
-rw-r--r-- | src/tee.c | 2 | ||||
-rw-r--r-- | src/test.c | 4 | ||||
-rw-r--r-- | src/tty.c | 2 | ||||
-rw-r--r-- | src/uname.c | 2 | ||||
-rw-r--r-- | src/who-users.c | 2 | ||||
-rw-r--r-- | src/whoami.c | 2 | ||||
-rw-r--r-- | src/yes.c | 2 |
27 files changed, 28 insertions, 28 deletions
diff --git a/src/basename.c b/src/basename.c index 30670a009..55ae9ffdf 100644 --- a/src/basename.c +++ b/src/basename.c @@ -93,7 +93,7 @@ main (int argc, char **argv) bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); - parse_long_options (argc, argv, "basename", PACKAGE_VERSION, usage); + parse_long_options (argc, argv, "basename", GNU_PACKAGE, VERSION, usage); if (argc == 1 || argc > 3) { diff --git a/src/chroot.c b/src/chroot.c index 477125e42..a4d066f71 100644 --- a/src/chroot.c +++ b/src/chroot.c @@ -58,7 +58,7 @@ main (int argc, char **argv) { program_name = argv[0]; - parse_long_options (argc, argv, "chroot", PACKAGE_VERSION, usage); + parse_long_options (argc, argv, "chroot", GNU_PACKAGE, VERSION, usage); if (argc == 1) { diff --git a/src/date.c b/src/date.c index 1d4ac5add..92655a734 100644 --- a/src/date.c +++ b/src/date.c @@ -198,7 +198,7 @@ main (int argc, char **argv) if (show_version) { - printf ("date - %s\n", PACKAGE_VERSION); + printf ("date (%s) %s\n", GNU_PACKAGE, VERSION); exit (0); } diff --git a/src/dirname.c b/src/dirname.c index 199c525fb..b201b29af 100644 --- a/src/dirname.c +++ b/src/dirname.c @@ -66,7 +66,7 @@ main (int argc, char **argv) bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); - parse_long_options (argc, argv, "dirname", PACKAGE_VERSION, usage); + parse_long_options (argc, argv, "dirname", GNU_PACKAGE, VERSION, usage); if (argc != 2) { diff --git a/src/echo.c b/src/echo.c index 06d72064d..466b7e014 100644 --- a/src/echo.c +++ b/src/echo.c @@ -112,7 +112,7 @@ main (int argc, char **argv) /* Don't recognize --help or --version if POSIXLY_CORRECT is set. */ if (getenv ("POSIXLY_CORRECT") == NULL) - parse_long_options (argc, argv, "echo", PACKAGE_VERSION, usage); + parse_long_options (argc, argv, "echo", GNU_PACKAGE, VERSION, usage); /* System V machines already have a /bin/sh with a v9 behaviour. We use the identical behaviour for these machines so that the @@ -140,7 +140,7 @@ main (register int argc, register char **argv, char **envp) if (show_version) { - printf ("env - %s\n", PACKAGE_VERSION); + printf ("env (%s) %s\n", GNU_PACKAGE, VERSION); exit (0); } diff --git a/src/expr.c b/src/expr.c index a82ea9c7c..fa980f6f2 100644 --- a/src/expr.c +++ b/src/expr.c @@ -161,7 +161,7 @@ main (int argc, char **argv) /* Don't recognize --help or --version if POSIXLY_CORRECT is set. */ if (getenv ("POSIXLY_CORRECT") == NULL) - parse_long_options (argc, argv, "expr", PACKAGE_VERSION, usage); + parse_long_options (argc, argv, "expr", GNU_PACKAGE, VERSION, usage); if (argc == 1) { diff --git a/src/factor.c b/src/factor.c index 89df40324..3b8b9eef5 100644 --- a/src/factor.c +++ b/src/factor.c @@ -182,7 +182,7 @@ main (int argc, char **argv) bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); - parse_long_options (argc, argv, "factor", PACKAGE_VERSION, usage); + parse_long_options (argc, argv, "factor", GNU_PACKAGE, VERSION, usage); fail = 0; if (argc == 1) diff --git a/src/hostname.c b/src/hostname.c index 590f79eb3..df80cddd3 100644 --- a/src/hostname.c +++ b/src/hostname.c @@ -83,7 +83,7 @@ main (int argc, char **argv) bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); - parse_long_options (argc, argv, "hostname", PACKAGE_VERSION, usage); + parse_long_options (argc, argv, "hostname", GNU_PACKAGE, VERSION, usage); #ifdef HAVE_SETHOSTNAME if (argc == 2) @@ -133,7 +133,7 @@ main (int argc, char **argv) if (show_version) { - printf ("id - %s\n", PACKAGE_VERSION); + printf ("id (%s) %s\n", GNU_PACKAGE, VERSION); exit (0); } diff --git a/src/logname.c b/src/logname.c index 4d10ac4ed..a582bbdc1 100644 --- a/src/logname.c +++ b/src/logname.c @@ -83,7 +83,7 @@ main (int argc, char **argv) if (show_version) { - printf ("logname - %s\n", PACKAGE_VERSION); + printf ("logname (%s) %s\n", GNU_PACKAGE, VERSION); exit (0); } diff --git a/src/nice.c b/src/nice.c index bd09a204a..b81b78bf7 100644 --- a/src/nice.c +++ b/src/nice.c @@ -65,7 +65,7 @@ main (int argc, char **argv) bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); - parse_long_options (argc, argv, "nice", PACKAGE_VERSION, usage); + parse_long_options (argc, argv, "nice", GNU_PACKAGE, VERSION, usage); for (optind = 1; optind < argc; /* empty */) { diff --git a/src/pathchk.c b/src/pathchk.c index 5fd4ef219..5939f156c 100644 --- a/src/pathchk.c +++ b/src/pathchk.c @@ -142,7 +142,7 @@ main (int argc, char **argv) if (show_version) { - printf ("pathchk - %s\n", PACKAGE_VERSION); + printf ("pathchk (%s) %s\n", GNU_PACKAGE, VERSION); exit (0); } diff --git a/src/printenv.c b/src/printenv.c index d4c81a519..804f85950 100644 --- a/src/printenv.c +++ b/src/printenv.c @@ -101,7 +101,7 @@ main (int argc, char **argv) if (show_version) { - printf ("printenv - %s\n", PACKAGE_VERSION); + printf ("printenv (%s) %s\n", GNU_PACKAGE, VERSION); exit (0); } diff --git a/src/printf.c b/src/printf.c index 4c3275008..15339e848 100644 --- a/src/printf.c +++ b/src/printf.c @@ -140,7 +140,7 @@ main (int argc, char **argv) /* Don't recognize --help or --version if POSIXLY_CORRECT is set. */ if (getenv ("POSIXLY_CORRECT") == NULL) - parse_long_options (argc, argv, "printf", PACKAGE_VERSION, usage); + parse_long_options (argc, argv, "printf", GNU_PACKAGE, VERSION, usage); if (argc == 1) { @@ -60,7 +60,7 @@ main (int argc, char **argv) bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); - parse_long_options (argc, argv, "pwd", PACKAGE_VERSION, usage); + parse_long_options (argc, argv, "pwd", GNU_PACKAGE, VERSION, usage); if (argc != 1) error (0, 0, _("ignoring non-option arguments")); @@ -162,7 +162,7 @@ main (int argc, char **argv) if (show_version) { - printf ("seq - %s\n", PACKAGE_VERSION); + printf ("seq (%s) %s\n", GNU_PACKAGE, VERSION); exit (0); } diff --git a/src/sleep.c b/src/sleep.c index 5e5c8e199..625ecf9dd 100644 --- a/src/sleep.c +++ b/src/sleep.c @@ -87,7 +87,7 @@ main (int argc, char **argv) if (show_version) { - printf ("sleep - %s\n", PACKAGE_VERSION); + printf ("sleep (%s) %s\n", GNU_PACKAGE, VERSION); exit (0); } diff --git a/src/stty.c b/src/stty.c index a6fb7f573..a5632d690 100644 --- a/src/stty.c +++ b/src/stty.c @@ -650,7 +650,7 @@ main (int argc, char **argv) bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); - parse_long_options (argc, argv, "stty", PACKAGE_VERSION, usage); + parse_long_options (argc, argv, "stty", GNU_PACKAGE, VERSION, usage); output_type = changed; verbose_output = 0; @@ -491,7 +491,7 @@ main (int argc, char **argv) if (show_version) { - printf ("su - %s\n", PACKAGE_VERSION); + printf ("su (%s) %s\n", GNU_PACKAGE, VERSION); exit (0); } @@ -114,7 +114,7 @@ main (int argc, char **argv) if (show_version) { - printf ("tee - %s\n", PACKAGE_VERSION); + printf ("tee (%s) %s\n", GNU_PACKAGE, VERSION); exit (0); } diff --git a/src/test.c b/src/test.c index e5d6d41b6..c4fbb3f99 100644 --- a/src/test.c +++ b/src/test.c @@ -1076,7 +1076,7 @@ main (int margc, char **margv) { /* Don't recognize --help or --version if POSIXLY_CORRECT is set. */ if (getenv ("POSIXLY_CORRECT") == NULL) - parse_long_options (argc, argv, COMMAND_NAME, PACKAGE_VERSION, usage); + parse_long_options (argc, argv, COMMAND_NAME, GNU_PACKAGE, VERSION, usage); --margc; @@ -1093,7 +1093,7 @@ main (int margc, char **margv) if (pos >= argc) test_exit (SHELL_BOOLEAN (FALSE)); - parse_long_options (argc, argv, COMMAND_NAME, PACKAGE_VERSION, usage); + parse_long_options (argc, argv, COMMAND_NAME, GNU_PACKAGE, VERSION, usage); value = posixtest (); if (pos != argc) @@ -84,7 +84,7 @@ main (int argc, char **argv) if (show_version) { - printf ("tty - %s\n", PACKAGE_VERSION); + printf ("tty (%s) %s\n", GNU_PACKAGE, VERSION); exit (0); } diff --git a/src/uname.c b/src/uname.c index 583031eed..ed5c1f626 100644 --- a/src/uname.c +++ b/src/uname.c @@ -133,7 +133,7 @@ main (int argc, char **argv) if (show_version) { - printf ("uname - %s\n", PACKAGE_VERSION); + printf ("uname (%s) %s\n", GNU_PACKAGE, VERSION); exit (0); } diff --git a/src/who-users.c b/src/who-users.c index ebf0c1920..104164194 100644 --- a/src/who-users.c +++ b/src/who-users.c @@ -728,7 +728,7 @@ main (int argc, char **argv) if (show_version) { - printf ("%s - %s\n", COMMAND_NAME, PACKAGE_VERSION); + printf ("%s - %s\n", COMMAND_NAME, GNU_PACKAGE, VERSION); exit (0); } diff --git a/src/whoami.c b/src/whoami.c index 8a7159d5b..632c7aaae 100644 --- a/src/whoami.c +++ b/src/whoami.c @@ -88,7 +88,7 @@ main (int argc, char **argv) if (show_version) { - printf ("whoami - %s\n", PACKAGE_VERSION); + printf ("whoami (%s) %s\n", GNU_PACKAGE, VERSION); exit (0); } @@ -55,7 +55,7 @@ main (int argc, char **argv) bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); - parse_long_options (argc, argv, "yes", PACKAGE_VERSION, usage); + parse_long_options (argc, argv, "yes", GNU_PACKAGE, VERSION, usage); if (argc == 1) while (1) |