From: Jim Meyering Date: Sat, 5 Oct 1996 16:37:57 +0000 (+0000) Subject: (main): update --version output to conform to coding standard X-Git-Tag: TEXTUTILS-1_19n~108 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f04044ed8678a899a8dfa8434b325eb4b146da0f;p=thirdparty%2Fcoreutils.git (main): update --version output to conform to coding standard --- diff --git a/src/basename.c b/src/basename.c index 30670a0090..55ae9ffdf5 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 477125e426..a4d066f715 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 1d4ac5add2..92655a734a 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 199c525fbe..b201b29afb 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 06d72064df..466b7e0149 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 diff --git a/src/env.c b/src/env.c index 3d22f64eff..b5a234c951 100644 --- a/src/env.c +++ b/src/env.c @@ -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 a82ea9c7c5..fa980f6f2a 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 89df403241..3b8b9eef58 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 590f79eb3f..df80cddd32 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) diff --git a/src/id.c b/src/id.c index e5d8e62138..8a25392f27 100644 --- a/src/id.c +++ b/src/id.c @@ -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 4d10ac4edb..a582bbdc11 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 bd09a204a2..b81b78bf7b 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 5fd4ef2198..5939f156c9 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 d4c81a5194..804f859501 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 4c32750084..15339e8484 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) { diff --git a/src/pwd.c b/src/pwd.c index 406cd65bb1..065c14f707 100644 --- a/src/pwd.c +++ b/src/pwd.c @@ -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")); diff --git a/src/seq.c b/src/seq.c index 402550163f..fb0f114831 100644 --- a/src/seq.c +++ b/src/seq.c @@ -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 5e5c8e199f..625ecf9dd6 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 a6fb7f5737..a5632d690b 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; diff --git a/src/su.c b/src/su.c index bca680beec..e8096e745e 100644 --- a/src/su.c +++ b/src/su.c @@ -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); } diff --git a/src/tee.c b/src/tee.c index 44c49de55d..458c50ba48 100644 --- a/src/tee.c +++ b/src/tee.c @@ -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 e5d6d41b64..c4fbb3f992 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) diff --git a/src/tty.c b/src/tty.c index 193bb5e5c6..f5039a296f 100644 --- a/src/tty.c +++ b/src/tty.c @@ -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 583031eed8..ed5c1f6263 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 ebf0c19205..1041641943 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 8a7159d5b5..632c7aaae3 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); } diff --git a/src/yes.c b/src/yes.c index 0a1171c5aa..67e70a14a2 100644 --- a/src/yes.c +++ b/src/yes.c @@ -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)