From: Jim Meyering Date: Fri, 4 Oct 1996 04:15:08 +0000 (+0000) Subject: (main): update --version output to conform to coding standard X-Git-Tag: TEXTUTILS-1_19n~120 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3361bd2bca857df4e502280400aa88a7cebda588;p=thirdparty%2Fcoreutils.git (main): update --version output to conform to coding standard --- diff --git a/src/cat.c b/src/cat.c index bfd7f6e03b..ea0fa6559a 100644 --- a/src/cat.c +++ b/src/cat.c @@ -581,7 +581,7 @@ main (int argc, char **argv) if (show_version) { - printf ("cat - %s\n", PACKAGE_VERSION); + printf ("cat (GNU %s) %s\n", PACKAGE, VERSION); exit (EXIT_SUCCESS); } diff --git a/src/cksum.c b/src/cksum.c index b7100564d8..0b823c33c8 100644 --- a/src/cksum.c +++ b/src/cksum.c @@ -307,7 +307,7 @@ main (int argc, char **argv) if (show_version) { - printf ("cksum - %s\n", PACKAGE_VERSION); + printf ("cksum (GNU %s) %s\n", PACKAGE, VERSION); exit (EXIT_SUCCESS); } diff --git a/src/comm.c b/src/comm.c index 62ef1611ae..9bdc640bf4 100644 --- a/src/comm.c +++ b/src/comm.c @@ -250,7 +250,7 @@ main (int argc, char **argv) if (show_version) { - printf ("comm - %s\n", PACKAGE_VERSION); + printf ("comm (GNU %s) %s\n", PACKAGE, VERSION); exit (EXIT_SUCCESS); } diff --git a/src/csplit.c b/src/csplit.c index 5ba35f5707..ea4c62a165 100644 --- a/src/csplit.c +++ b/src/csplit.c @@ -1518,7 +1518,7 @@ main (int argc, char **argv) if (show_version) { - printf ("csplit - %s\n", PACKAGE_VERSION); + printf ("csplit (GNU %s) %s\n", PACKAGE, VERSION); exit (EXIT_SUCCESS); } diff --git a/src/cut.c b/src/cut.c index 739ddd477f..c1e57ba42a 100644 --- a/src/cut.c +++ b/src/cut.c @@ -737,7 +737,7 @@ main (int argc, char **argv) if (show_version) { - printf ("cut - %s\n", PACKAGE_VERSION); + printf ("cut (GNU %s) %s\n", PACKAGE, VERSION); exit (EXIT_SUCCESS); } diff --git a/src/expand.c b/src/expand.c index cea9b44f4d..3b21d6426a 100644 --- a/src/expand.c +++ b/src/expand.c @@ -368,7 +368,7 @@ main (int argc, char **argv) if (show_version) { - printf ("expand - %s\n", PACKAGE_VERSION); + printf ("expand (GNU %s) %s\n", PACKAGE, VERSION); exit (EXIT_SUCCESS); } diff --git a/src/fmt.c b/src/fmt.c index bc8be68648..bcc972d645 100644 --- a/src/fmt.c +++ b/src/fmt.c @@ -398,7 +398,7 @@ main (register int argc, register char **argv) if (show_version) { - printf ("fmt - %s\n", PACKAGE_VERSION); + printf ("fmt (GNU %s) %s\n", PACKAGE, VERSION); exit (EXIT_SUCCESS); } diff --git a/src/fold.c b/src/fold.c index f5ffb4dd7d..6fcfd06957 100644 --- a/src/fold.c +++ b/src/fold.c @@ -310,7 +310,7 @@ main (int argc, char **argv) if (show_version) { - printf ("fold - %s\n", PACKAGE_VERSION); + printf ("fold (GNU %s) %s\n", PACKAGE, VERSION); exit (EXIT_SUCCESS); } diff --git a/src/head.c b/src/head.c index ba6e31b77b..3bce5f7804 100644 --- a/src/head.c +++ b/src/head.c @@ -353,7 +353,7 @@ main (int argc, char **argv) if (show_version) { - printf ("head - %s\n", PACKAGE_VERSION); + printf ("head (GNU %s) %s\n", PACKAGE, VERSION); exit (EXIT_SUCCESS); } diff --git a/src/md5sum.c b/src/md5sum.c index 64ab5fbb71..c234ebb490 100644 --- a/src/md5sum.c +++ b/src/md5sum.c @@ -505,7 +505,7 @@ main (int argc, char **argv) if (do_version) { - printf ("md5sum - %s\n", PACKAGE_VERSION); + printf ("md5sum (GNU %s) %s\n", PACKAGE, VERSION); exit (EXIT_SUCCESS); } diff --git a/src/nl.c b/src/nl.c index e564682772..4a41c133ff 100644 --- a/src/nl.c +++ b/src/nl.c @@ -579,7 +579,7 @@ main (int argc, char **argv) if (show_version) { - printf ("nl - %s\n", PACKAGE_VERSION); + printf ("nl (GNU %s) %s\n", PACKAGE, VERSION); exit (EXIT_SUCCESS); } diff --git a/src/od.c b/src/od.c index 3e5d0fa87d..6c490da187 100644 --- a/src/od.c +++ b/src/od.c @@ -1793,7 +1793,7 @@ the maximum\nrepresentable value of type `long'"), optarg); if (show_version) { - printf ("od - %s\n", PACKAGE_VERSION); + printf ("od (GNU %s) %s\n", PACKAGE, VERSION); exit (EXIT_SUCCESS); } diff --git a/src/paste.c b/src/paste.c index c5b47e1a11..7ae2437cab 100644 --- a/src/paste.c +++ b/src/paste.c @@ -473,7 +473,7 @@ main (int argc, char **argv) if (show_version) { - printf ("paste - %s\n", PACKAGE_VERSION); + printf ("paste (GNU %s) %s\n", PACKAGE, VERSION); exit (EXIT_SUCCESS); } diff --git a/src/pr.c b/src/pr.c index 02e20e14af..45684ac241 100644 --- a/src/pr.c +++ b/src/pr.c @@ -616,7 +616,7 @@ main (int argc, char **argv) if (show_version) { - printf ("pr - %s\n", PACKAGE_VERSION); + printf ("pr (GNU %s) %s\n", PACKAGE, VERSION); exit (EXIT_SUCCESS); } diff --git a/src/split.c b/src/split.c index fec78cfc35..6deebf21d0 100644 --- a/src/split.c +++ b/src/split.c @@ -454,7 +454,7 @@ main (int argc, char **argv) if (show_version) { - printf ("split - %s\n", PACKAGE_VERSION); + printf ("split (GNU %s) %s\n", PACKAGE, VERSION); exit (EXIT_SUCCESS); } diff --git a/src/sum.c b/src/sum.c index ddaabe0481..d5777d08eb 100644 --- a/src/sum.c +++ b/src/sum.c @@ -235,7 +235,7 @@ main (int argc, char **argv) if (show_version) { - printf ("sum - %s\n", PACKAGE_VERSION); + printf ("sum (GNU %s) %s\n", PACKAGE, VERSION); exit (EXIT_SUCCESS); } diff --git a/src/tac.c b/src/tac.c index 2b9ba48d43..8b7bceb3d9 100644 --- a/src/tac.c +++ b/src/tac.c @@ -622,7 +622,7 @@ main (int argc, char **argv) if (show_version) { - printf ("tac - %s\n", PACKAGE_VERSION); + printf ("tac (GNU %s) %s\n", PACKAGE, VERSION); exit (EXIT_SUCCESS); } diff --git a/src/tail.c b/src/tail.c index 9bc600c203..44f9a339ed 100644 --- a/src/tail.c +++ b/src/tail.c @@ -977,7 +977,7 @@ main (int argc, char **argv) if (show_version) { - printf ("tail - %s\n", PACKAGE_VERSION); + printf ("tail (GNU %s) %s\n", PACKAGE, VERSION); exit (EXIT_SUCCESS); } diff --git a/src/tr.c b/src/tr.c index e0d420e2f5..181f2971ec 100644 --- a/src/tr.c +++ b/src/tr.c @@ -1848,7 +1848,7 @@ main (int argc, char **argv) if (show_version) { - printf ("tr - %s\n", PACKAGE_VERSION); + printf ("tr (GNU %s) %s\n", PACKAGE, VERSION); exit (EXIT_SUCCESS); } diff --git a/src/unexpand.c b/src/unexpand.c index aeeb5ac8be..aa3b5a6984 100644 --- a/src/unexpand.c +++ b/src/unexpand.c @@ -439,7 +439,7 @@ main (int argc, char **argv) if (show_version) { - printf ("unexpand - %s\n", PACKAGE_VERSION); + printf ("unexpand (GNU %s) %s\n", PACKAGE, VERSION); exit (EXIT_SUCCESS); } diff --git a/src/uniq.c b/src/uniq.c index 9e99384c2a..38d8759c05 100644 --- a/src/uniq.c +++ b/src/uniq.c @@ -384,7 +384,7 @@ main (int argc, char **argv) if (show_version) { - printf ("uniq - %s\n", PACKAGE_VERSION); + printf ("uniq (GNU %s) %s\n", PACKAGE, VERSION); exit (EXIT_SUCCESS); } diff --git a/src/wc.c b/src/wc.c index 8834b2a533..4bd20b42a1 100644 --- a/src/wc.c +++ b/src/wc.c @@ -293,7 +293,7 @@ main (int argc, char **argv) if (show_version) { - printf ("wc - %s\n", PACKAGE_VERSION); + printf ("wc (GNU %s) %s\n", PACKAGE, VERSION); exit (EXIT_SUCCESS); }