]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: use new emit_try_help in place of equivalent fprintf
authorJim Meyering <meyering@redhat.com>
Sat, 7 Jan 2012 15:54:26 +0000 (16:54 +0100)
committerJim Meyering <meyering@redhat.com>
Sat, 7 Jan 2012 15:54:26 +0000 (16:54 +0100)
Run this command:
  perl -0777 -pi -e \
   's/fprintf \(stderr, _\("Try `%s --help.*\n.*;/emit_try_help ();/m'\
     src/*.c

96 files changed:
src/base64.c
src/basename.c
src/cat.c
src/chcon.c
src/chgrp.c
src/chmod.c
src/chown.c
src/chroot.c
src/cksum.c
src/comm.c
src/cp.c
src/csplit.c
src/cut.c
src/date.c
src/dd.c
src/df.c
src/dircolors.c
src/dirname.c
src/du.c
src/echo.c
src/env.c
src/expand.c
src/expr.c
src/factor.c
src/fmt.c
src/fold.c
src/getlimits.c
src/groups.c
src/head.c
src/hostid.c
src/hostname.c
src/id.c
src/install.c
src/join.c
src/kill.c
src/link.c
src/ln.c
src/logname.c
src/ls.c
src/md5sum.c
src/mkdir.c
src/mkfifo.c
src/mknod.c
src/mktemp.c
src/mv.c
src/nice.c
src/nl.c
src/nohup.c
src/nproc.c
src/od.c
src/paste.c
src/pathchk.c
src/pinky.c
src/pr.c
src/printenv.c
src/printf.c
src/ptx.c
src/pwd.c
src/readlink.c
src/realpath.c
src/rm.c
src/rmdir.c
src/runcon.c
src/seq.c
src/setuidgid.c
src/shred.c
src/shuf.c
src/sleep.c
src/sort.c
src/split.c
src/stat.c
src/stdbuf.c
src/stty.c
src/su.c
src/sum.c
src/sync.c
src/tac.c
src/tail.c
src/tee.c
src/test.c
src/timeout.c
src/touch.c
src/tr.c
src/truncate.c
src/tsort.c
src/tty.c
src/uname.c
src/unexpand.c
src/uniq.c
src/unlink.c
src/uptime.c
src/users.c
src/wc.c
src/who.c
src/whoami.c
src/yes.c

index 70422670bf20becff7755ce6ed11fba6a135af2a..caf4141dbd5691fe9b060391dc17fd54c9776153 100644 (file)
@@ -54,8 +54,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("\
index 5d339c222ab02d1f79efdd89414d5cb99e41517d..a8e59c2e11b3491ecf8e113f6e50eb29a1852642 100644 (file)
@@ -43,8 +43,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("\
index 33a94b67be03d2d48c5f6f055d0cdb77f09fead5..9352fb2228e1e902323b2c65634cf0eb6f7818f6 100644 (file)
--- a/src/cat.c
+++ b/src/cat.c
@@ -82,8 +82,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("\
index 9066122b66d00cdd5801d6fa748dacf1f969a68c..b62ed3a7dcabd3ba581e69ee588bae51c69cb199 100644 (file)
@@ -345,8 +345,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("\
index c4e7b139dd4f03fc30306fcb80003ea934fa8d52..f4a2bf6604d45476ad8e04ab925569f5061ed6d6 100644 (file)
@@ -102,8 +102,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("\
index 316ee73d178cdbfd935dd3f7129df894b665482d..3fb9a8251a80011ddbb50d4d0f1cf34b8e2bda38 100644 (file)
@@ -365,8 +365,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("\
index 9e936a4d250f3c46253156e65faefa0cda82b2ef..2f23b33cc3e7b789e5390e3689d9d31ea0ee60e1 100644 (file)
@@ -73,8 +73,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("\
index ec187941301d3fbe64597afbfcba5c6238bb9335..4e3468076633dbaa6ec167f7fb6f208c50d334cd 100644 (file)
@@ -126,8 +126,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("\
index f529ccda5b7e284f2f2bfd208bec2b2daac4c3ec..086d4e1f8f8ab933f7792f5cb47a8e57bd4d87ff 100644 (file)
@@ -257,8 +257,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("\
index a95893312b0a250708131ee9fd90848c22773377..8fd6cb1b8640af25c1135b6a25a100c07d8aaf5b 100644 (file)
@@ -98,8 +98,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("\
index be4f25baea147495f31e08715b9a40518cf150ff..10ffc9c1fd037450deb3934f38421adf2390e0c1 100644 (file)
--- a/src/cp.c
+++ b/src/cp.c
@@ -150,8 +150,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("\
index 22c513ace8ce2b5d6fde13d419719b2e613df2f6..607092adfbc3cf61e0ccd03d10f641d7014160a5 100644 (file)
@@ -1443,8 +1443,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("\
index 624e6ac0b89bb464eff1cc5c54a6a1c785f25c25..a820189f31a61988eb043382f2808720b6b8473b 100644 (file)
--- a/src/cut.c
+++ b/src/cut.c
@@ -183,8 +183,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("\
index a7917cd060eb42e080ee29f3ec3343a29db35257..216d5db78bcf3592860988066263235e37311c0c 100644 (file)
@@ -117,8 +117,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("\
index d1904396926f39b8f1664d98ae1ad76d496dd000..261aee6148f9861964538d37ffcc7575be574a04 100644 (file)
--- a/src/dd.c
+++ b/src/dd.c
@@ -475,8 +475,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("\
index fae32cd938227c0680c83b0a79b0498a965c70f9..e3d55c443ac4eadac148fdecc5b3bcc1f9b8b4bf 100644 (file)
--- a/src/df.c
+++ b/src/df.c
@@ -840,8 +840,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("Usage: %s [OPTION]... [FILE]...\n"), program_name);
index 392c6efdb9d98f703c9277b5b772ff67e76d348e..617e6d98272951b39d14fbfcfd4aaef43abb1219 100644 (file)
@@ -91,8 +91,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("Usage: %s [OPTION]... [FILE]\n"), program_name);
index 5cb28098ec0f79cf8d288616f306a26f45197983..07ac9d854fef29c657c803632313a7629b06e295 100644 (file)
@@ -38,8 +38,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("\
index 07a339a9dda0f99fe8748e15648bf01e0944b684..689e9bc33f73592d770b941a13e6b8370c8d99f3 100644 (file)
--- a/src/du.c
+++ b/src/du.c
@@ -253,8 +253,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("\
index 89943a4e241b532633a9aaed38b439b2b0813190..b909656778dfc6292deba9a60533a544320d4742 100644 (file)
@@ -36,8 +36,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("\
index 0ca7d359ab4038daafb328269f802e18acf2ad95..b725b41242b8179ecf18eec6443a4ed5ecf35509 100644 (file)
--- a/src/env.c
+++ b/src/env.c
@@ -46,8 +46,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("\
index c362d111b1abe8513dbf7d662cf0f68d94593d46..0eb6955aeab0ff5ad7510b4e60e58718144ed0ed 100644 (file)
@@ -98,8 +98,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("\
index 9502ab30f5e0bcc08acc918a96bf27eea334fdb2..f17d7360d8cf08730c3681406e6092ed8908206b 100644 (file)
@@ -197,8 +197,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("\
index 43fbaa6c094b0b927bc4654536efb639bfdba466..8a9720db92bad48ca046fb9dd22b5414c9147257 100644 (file)
@@ -488,8 +488,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("\
index 61d5386cba2776d791c4890cf21baea6945c5adc..e8aaebfd6bd08f1970bfd916ce4d58d79e165660 100644 (file)
--- a/src/fmt.c
+++ b/src/fmt.c
@@ -263,8 +263,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("Usage: %s [-WIDTH] [OPTION]... [FILE]...\n"), program_name);
index acfa38737bb55865677e2bd3c05ebc9bf5cf09b5..243156a26edb14aa5473c6f2b20d3cb95a1f5ba6 100644 (file)
@@ -60,8 +60,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("\
index 749c2636727cd7d7d50359295a79582da621b87c..1403ee58f506a662c7577f31cf44f90c5e166903 100644 (file)
@@ -59,8 +59,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("\
index c54621421ec8999bbe24bda34f5270c85d5b66cd..aae6357f7dccd450576bb9abdf020ec40666433a 100644 (file)
@@ -47,8 +47,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("Usage: %s [OPTION]... [USERNAME]...\n"), program_name);
index c0f2bac98041675d96766e788cbb5b9fd3b40a01..2ef3e9281f53e5f7ef8f7753ccc215e12e587256 100644 (file)
@@ -99,8 +99,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("\
index 7f6a1f3016447877398269bdae4b725939c31d1b..807363c05fa7c3eb9ae19c3d5fde54cab1cce950 100644 (file)
@@ -36,8 +36,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("\
index b18208ebf46102c7945328626884b0ab070240c3..27d8bbee679e40fa74b971093ad988ef3158888d 100644 (file)
@@ -50,8 +50,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("\
index a01a1cc952d8b2444ec71e10bc51fd3f191bc2b4..8e0ca0b66ff951f3952db4aaa20d3407d03b06f9 100644 (file)
--- a/src/id.c
+++ b/src/id.c
@@ -75,8 +75,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("Usage: %s [OPTION]... [USERNAME]\n"), program_name);
index ca34e7781056cc7075e8e361064452db60bb06fb..45d5e0aae077b87096769ac57049bee6b90dad38 100644 (file)
@@ -587,8 +587,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("\
index 763be6d5736b1440b71da9fcb76733c60e6e57b3..84736230acf7902b3100413c8b8ce6848af318b0 100644 (file)
@@ -181,8 +181,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("\
index 0d09c2b582b43fffbcd279ea5de5148f7db09086..bdb1c5e703644da77cd139a8227e17e4e43566a4 100644 (file)
@@ -70,8 +70,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("\
index bfe89a9a46125c72bfe1360b0e37a27fbaf4458e..74dfeb62def7848c46a1762d852af54bb100abf5 100644 (file)
@@ -39,8 +39,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("\
index 7cceb5f668204d2d14e214e6bf496165dc0098d9..0c1cd8562d39041e7776ae413791239420439d75 100644 (file)
--- a/src/ln.c
+++ b/src/ln.c
@@ -329,8 +329,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("\
index 9418f663597d5992a517d9d869d2571573465b1f..62a6e9d1ea66e5f7bddec495c1c75b6feaedfbb7 100644 (file)
@@ -33,8 +33,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("Usage: %s [OPTION]\n"), program_name);
index ec3bf562d96492f043e2d1977e23ed40a90e26d3..b12f8773d7a7896b0aeedb9db0ca8745b3734c31 100644 (file)
--- a/src/ls.c
+++ b/src/ls.c
@@ -4642,8 +4642,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("Usage: %s [OPTION]... [FILE]...\n"), program_name);
index 5f8e55b99b41cd49647c1bcd52990c66797c9256..7024866a1b680b5ab805ec018e452e8e69440262 100644 (file)
@@ -156,8 +156,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("\
index bedda69af395c57be8ad529ed4944d753cc44ad6..a466841621b9c3ad0d8f5619aa8457214045beed 100644 (file)
@@ -50,8 +50,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("Usage: %s [OPTION]... DIRECTORY...\n"), program_name);
index b2d8db27f758f107d18915a3cd93fea8be34110c..743ac4a3591ae05fbd2fa1591beedf119d673ea5 100644 (file)
@@ -45,8 +45,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("Usage: %s [OPTION]... NAME...\n"), program_name);
index 57d8664427de4af7f265ca4b1429a477c243ddd0..dd98b420b28bdad8c3ee8a91a74f6663ea567871 100644 (file)
@@ -46,8 +46,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("Usage: %s [OPTION]... NAME TYPE [MAJOR MINOR]\n"),
index 7dd377f83343fcf8e5d90b92f78325a6ac2623e1..9ae6538e2dbb2920cec28544fded972d0303c374 100644 (file)
@@ -62,8 +62,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("Usage: %s [OPTION]... [TEMPLATE]\n"), program_name);
index 0c38de3e08b8637e3a95a5eef72651042ec97f14..ef398833fa44c8ec22c435b8aaf83af55975323a 100644 (file)
--- a/src/mv.c
+++ b/src/mv.c
@@ -278,8 +278,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("\
index e5c4a99e41299c575bf9030b24dfe90b1056e206..56b8249f92e84bfe7a112e7895e470ffe92d44eb 100644 (file)
@@ -66,8 +66,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("Usage: %s [OPTION] [COMMAND [ARG]...]\n"), program_name);
index 7546aaa42a5a39e0156c48236d7ff96ccc4f50e0..f3a5298769329a4d5c74c79be05d89599a563a1a 100644 (file)
--- a/src/nl.c
+++ b/src/nl.c
@@ -176,8 +176,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("\
index 159ff1246b113d78148ea8efb7bd2dbc36f4614e..e19d2940e471cb30baf91c6d9f0ffad8ac314640 100644 (file)
@@ -47,8 +47,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("\
index 66fb2f1889123e5ab8bb98d4fe92b83a9a8de0ca..d336054541797914e54f6d444796134f14ab53f8 100644 (file)
@@ -50,8 +50,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("Usage: %s [OPTION]...\n"), program_name);
index 8ef77bfcb8ec9fc3e96d7319a4ee18e398d69281..171e6c8c11c4db46cb39e4f8e5b86301171fabd1 100644 (file)
--- a/src/od.c
+++ b/src/od.c
@@ -288,8 +288,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("\
index 789a9a0dfcdd1f6545dfe2f676e88e9cbffa435e..3989f66796e4fbe67e9978bce6138ad4b6b03237 100644 (file)
@@ -429,8 +429,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("\
index d35d60956767faaedcabe5255a6c8f7f12b26a3a..b337a3ba59433571908b5e03908f47fa6c3cde80 100644 (file)
@@ -83,8 +83,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("Usage: %s [OPTION]... NAME...\n"), program_name);
index 00d62069e4724fa1701b914ae5af4775ac60c8c9..6f0874dc1a066098fc4d74f78b977dd7ad7f5f90 100644 (file)
@@ -496,8 +496,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("Usage: %s [OPTION]... [USER]...\n"), program_name);
index 6a5b7d15fbc2d3e94408c29fb4ad55fb3178867a..3e473fcb0fbbfe143d7e9fdb7bf88e8ebc46af24 100644 (file)
--- a/src/pr.c
+++ b/src/pr.c
@@ -2762,8 +2762,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("\
index b236396368352c9183663a488e4de6a17b8cf253..809f0e0e64bdb6f0c1fc09562a0608087a24c3ee 100644 (file)
@@ -56,8 +56,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("\
index d956955770ca9326da99f889e2cf396154bc0b75..91091fd634bba51e9de272ba6ced8128ddf09f06 100644 (file)
@@ -82,8 +82,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("\
index 3d39076866dfa84ace3b0f9c03d98fe765b1f417..668a31d055605ae372de4f13293f440cb3434e62 100644 (file)
--- a/src/ptx.c
+++ b/src/ptx.c
@@ -1811,8 +1811,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("\
index 593dce30f234a0b799844717a2c74597d46e8d8e..7b3ab73e4ca7c57a02b64b667b58ecb9d17c6dc6 100644 (file)
--- a/src/pwd.c
+++ b/src/pwd.c
@@ -50,8 +50,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("Usage: %s [OPTION]...\n"), program_name);
index 4df0d09f17de3164a5f7456ad70a5c46bd92ca12..5d8cfd9737e1d80f609d4110142bf989c45a29a3 100644 (file)
@@ -56,8 +56,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("Usage: %s [OPTION]... FILE\n"), program_name);
index cb0ef2f1f16f6f9fc2918a20bc5e82108a4f33e8..130a665059e67ba40eeece87f839f487031963b1 100644 (file)
@@ -64,8 +64,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("Usage: %s [OPTION]... FILE...\n"), program_name);
index d1904a8994e30d3f5b0d230422b1c143b1f7f038..a5edfcf8f6751cd27e13b7440ce77ac7648e8b5e 100644 (file)
--- a/src/rm.c
+++ b/src/rm.c
@@ -128,8 +128,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("Usage: %s [OPTION]... FILE...\n"), program_name);
index c628ed0cd54a7eb5f49bcd7c666994ab830b58ca..f966ba2ae0c5edc6ea6d41c90cb06f996cad5433 100644 (file)
@@ -158,8 +158,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("Usage: %s [OPTION]... DIRECTORY...\n"), program_name);
index 98a0bb04869f0cf26d6fb64642b1c113c3816186..a70ed79353ea2c9203565c52276a0b21a9386f21 100644 (file)
@@ -77,8 +77,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("\
index 598c5a0aaa98243ae1e7bd44abadd845aca1973b..32766145cf1497fc0e6c6b5d29530baa709a4ebe 100644 (file)
--- a/src/seq.c
+++ b/src/seq.c
@@ -62,8 +62,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("\
index b339bda4f57bbf0bb7e086ffd363190dae0c1d48..39044ce9002ec14be77923746b47eb6cac11024c 100644 (file)
@@ -43,8 +43,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("\
index 2f7da9ed0dce7e0134e5f93ac0bcfab425b456c6..5494c2a21505dd6af6fee1fbbaf5c0a37193e97a 100644 (file)
@@ -141,8 +141,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("Usage: %s [OPTION]... FILE...\n"), program_name);
index f57d31f725ac6b1d982159187cc448c3250cb28e..1f1fe975088bd7b943029bd93fa76599194ba0f1 100644 (file)
@@ -42,8 +42,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("\
index d2a64c24fe56f1b72bee65a1d03b8c180a9a00e7..bae6fd5b83e50dab2296bddfc24f75014711f3b5 100644 (file)
@@ -39,8 +39,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("\
index 62db87d4a766b31b34b7ab235c06ba2dfc0f4f30..dd7d56355042fe7de86ee073f3b76e0e3d6d84c1 100644 (file)
@@ -386,8 +386,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("\
index 2eb343b15cfebf3948e3d68bb509efd7a46ba961..d0abd65fb0724b4b29add2d7802036014aea62a7 100644 (file)
@@ -175,8 +175,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("\
index 3cbc0cbf8e5fb2affd680f38a0840e104faf39e3..0d40d99524e8bd203d5c7b89d6b8a63c521294f3 100644 (file)
@@ -1323,8 +1323,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("Usage: %s [OPTION]... FILE...\n"), program_name);
index cc6bd564f2b448f1b6efebecfde1d8955ffac32b..a4ec52e06145bdd52f5233a96d0f10c6b975e1a3 100644 (file)
@@ -84,8 +84,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("Usage: %s OPTION... COMMAND\n"), program_name);
index 855aebcea0dc2de70f066821f812dea2b8cf68fc..fa48dbbeff04c8db7ebd5885fd85b5da7369355f 100644 (file)
@@ -503,8 +503,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("\
index 7ad9c43fbaa9dd1afb802779c54332d6ee5484fa..adac19f4c8c25a48aba7fee8e2467cf426014b1e 100644 (file)
--- a/src/su.c
+++ b/src/su.c
@@ -365,8 +365,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("Usage: %s [OPTION]... [-] [USER [ARG]...]\n"), program_name);
index 12f3daf069932f201459d84cfaede7e6da77e789..5a03e4fad718fedb2dc9d202bf4a8d432bb5cd6c 100644 (file)
--- a/src/sum.c
+++ b/src/sum.c
@@ -53,8 +53,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("\
index f3958748c496d368f13db57a9c2a281f79e700bc..2a84f3d9b40234d08a5e6c0acb0c373d75b4ff1d 100644 (file)
@@ -34,8 +34,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("Usage: %s [OPTION]\n"), program_name);
index 02c67c9ef3c213bbedf3c17b1521d4d5911a55a3..5c183f59a0fe1fce4a23d40991171f42fbb7a2ed 100644 (file)
--- a/src/tac.c
+++ b/src/tac.c
@@ -127,8 +127,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("\
index eae57415e309e541a66a731a32b050d50daefe68..123cfba269eabd4f52d3c8924e4daa035aa2cea3 100644 (file)
@@ -252,8 +252,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("\
index 9f85659cc13d8232c766911aaa0bfe5eb7d67ea9..c832c7c2bb7fd51d0cb6c1f6658d4ed4a9261a5b 100644 (file)
--- a/src/tee.c
+++ b/src/tee.c
@@ -56,8 +56,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("Usage: %s [OPTION]... [FILE]...\n"), program_name);
index 51b6ee87ae9218052cb914e80c9a26279255e14c..5bf712aa8156c7f728ed728ea38e6505f4cde521 100644 (file)
@@ -698,8 +698,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       fputs (_("\
index 17c5f21f8654c7997cee26de2b0f0efccd83b7da..ca8f0eb08106d577b7bfe11888a643f8c6b6b6ac 100644 (file)
@@ -198,8 +198,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("\
index 2fc15fe233833ee3014c5ac6502eaf922695a70d..70d7567a40cf177e49b5390eda8c180652450f3a 100644 (file)
@@ -210,8 +210,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("Usage: %s [OPTION]... FILE...\n"), program_name);
index d2e70b584d792e06619730be7d980ec428d00b3e..5dc065cf82bd27806a1c4203a8cd801cd05a6875 100644 (file)
--- a/src/tr.c
+++ b/src/tr.c
@@ -280,8 +280,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("\
index 95df4f0c406860755aa5dc4c97d4b52783811d1c..29cb2fa36f5471b45014c69673615a1cf79d6337 100644 (file)
@@ -90,8 +90,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("Usage: %s OPTION... FILE...\n"), program_name);
index 73d9a10cddf7bb2bc2bd7d254639d82a73cbdca3..d3532f949bb9b2704b8600635e77f2889d4ab1ea 100644 (file)
@@ -76,8 +76,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("\
index bf750054131c5103c03358872445183eb009c959..b5c163e3469803d9d998d28e816fb5329cc1c61d 100644 (file)
--- a/src/tty.c
+++ b/src/tty.c
@@ -58,8 +58,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("Usage: %s [OPTION]...\n"), program_name);
index a283df901ba8926edb27435e80694bf99180252e..cb290e822643f3273de8cdd124922708f61fae49 100644 (file)
@@ -115,8 +115,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("Usage: %s [OPTION]...\n"), program_name);
index 264d114c58cb15f5b6f4069a2139d83f21c401af..bdc6cbbca1110adee0cc8aaa09dc1cec665dd672 100644 (file)
@@ -108,8 +108,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("\
index c05572b598de2be52acc3f7bbd854d6552b1d0a0..e4a2d157aac8fcb91d3b5b20459dc5de485f317a 100644 (file)
@@ -128,8 +128,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("\
index fd0be8246db44c68c6d6af17808820ce7e1b1413..d246a86fa002fb896d4e4ed8fab24c56d9236e1b 100644 (file)
@@ -39,8 +39,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("\
index b3b8fb11ba1445ec50a211c620b84c4c8e7ec25f..16852e81aa54e876c6bfb3995e74d304616bd6b9 100644 (file)
@@ -190,8 +190,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("Usage: %s [OPTION]... [FILE]\n"), program_name);
index 810ce9114a8a75f93ac24672977d13129d14a890..e956071178acb8b881498d341acfcbcb74a825fa 100644 (file)
@@ -99,8 +99,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("Usage: %s [OPTION]... [FILE]\n"), program_name);
index bdd893aec8cc6a4e845f3c149f18a3a56084cf8b..924732d8e010777e18162931f4953dc89ad089c7 100644 (file)
--- a/src/wc.c
+++ b/src/wc.c
@@ -106,8 +106,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("\
index 68d679cdd7269ead56f393c9ca876f9df1eff1ba..00d4637470b8c23d7e7217209b2b6d66022cfecd 100644 (file)
--- a/src/who.c
+++ b/src/who.c
@@ -643,8 +643,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("Usage: %s [OPTION]... [ FILE | ARG1 ARG2 ]\n"), program_name);
index fd093f78fa1284dccdc9470972ca7a2c9fc4b8d8..1525ec552ca3a9bdb6977d0e9c1b983ee480fe59 100644 (file)
@@ -39,8 +39,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("Usage: %s [OPTION]...\n"), program_name);
index 41dc5c3002abb7cb9e30020199221332d74a26ec..535c13fe0dc0e38d64c101fdcaa43df8bb142718 100644 (file)
--- a/src/yes.c
+++ b/src/yes.c
@@ -35,8 +35,7 @@ void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-             program_name);
+    emit_try_help ();
   else
     {
       printf (_("\