From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: util-linux-owner@vger.kernel.org Received: from cpsmtpb-ews06.kpnxchange.com ([213.75.39.9]:57050 "EHLO cpsmtpb-ews06.kpnxchange.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751665AbaL2KRs (ORCPT ); Mon, 29 Dec 2014 05:17:48 -0500 From: Benno Schulenberg To: util-linux@vger.kernel.org Subject: [PATCH 10/11] tailf: slice up the usage text for ease of translation Date: Mon, 29 Dec 2014 11:17:05 +0100 Message-Id: <1419848226-2533-9-git-send-email-bensberg@justemail.net> In-Reply-To: <1419848226-2533-1-git-send-email-bensberg@justemail.net> References: <1419848226-2533-1-git-send-email-bensberg@justemail.net> Sender: util-linux-owner@vger.kernel.org List-ID: Also use the standard macros and angular brackets for presenting it. Signed-off-by: Benno Schulenberg --- text-utils/tailf.c | 19 +++++++++---------- 1 files changed, 9 insertions(+), 10 deletions(-) diff --git a/text-utils/tailf.c b/text-utils/tailf.c index cf22a1e..6adb050 100644 --- a/text-utils/tailf.c +++ b/text-utils/tailf.c @@ -193,22 +193,21 @@ watch_file_inotify(const char *filename, off_t *size) static void __attribute__ ((__noreturn__)) usage(FILE *out) { - fprintf(out, - _("\nUsage:\n" - " %s [option] file\n"), - program_invocation_short_name); + fputs(USAGE_HEADER, out); + fprintf(out, _(" %s [option] \n"), program_invocation_short_name); fputs(USAGE_SEPARATOR, out); fputs(_("Follow the growth of a log file.\n"), out); - fprintf(out, _( - "\nOptions:\n" - " -n, --lines NUMBER output the last NUMBER lines\n" - " -NUMBER same as `-n NUMBER'\n" - " -V, --version output version information and exit\n" - " -h, --help display this help and exit\n\n")); + fputs(USAGE_OPTIONS, out); + fputs(_(" -n, --lines output the last lines\n"), out); + fputs(_(" - same as '-n '\n"), out); + fputs(USAGE_SEPARATOR, out); + fputs(USAGE_HELP, out); + fputs(USAGE_VERSION, out); fprintf(out, USAGE_MAN_TAIL("tailf(1)")); + exit(out == stderr ? EXIT_FAILURE : EXIT_SUCCESS); } -- 1.7.0.4