~ubuntu-branches/ubuntu/utopic/coreutils/utopic-proposed

« back to all changes in this revision

Viewing changes to src/yes.c

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2012-11-28 03:03:42 UTC
  • mfrom: (8.3.4 sid)
  • Revision ID: package-import@ubuntu.com-20121128030342-21zanj8354gas5gr
Tags: 8.20-3ubuntu1
* Resynchronise with Debian.  Remaining changes:
  - Make 'uname -i -p' return the real processor/hardware, instead of
    unknown.
  - Build-depend on gettext:any instead of on gettext, so that apt-get can
    properly resolve build-dependencies on the tool when cross-building.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* yes - output a string repeatedly until killed
2
 
   Copyright (C) 1991-1997, 1999-2004, 2007-2011 Free Software Foundation, Inc.
 
2
   Copyright (C) 1991-2012 Free Software Foundation, Inc.
3
3
 
4
4
   This program is free software: you can redistribute it and/or modify
5
5
   it under the terms of the GNU General Public License as published by
26
26
#include "error.h"
27
27
#include "long-options.h"
28
28
 
29
 
/* The official name of this program (e.g., no `g' prefix).  */
 
29
/* The official name of this program (e.g., no 'g' prefix).  */
30
30
#define PROGRAM_NAME "yes"
31
31
 
32
32
#define AUTHORS proper_name ("David MacKenzie")
35
35
usage (int status)
36
36
{
37
37
  if (status != EXIT_SUCCESS)
38
 
    fprintf (stderr, _("Try `%s --help' for more information.\n"),
39
 
             program_name);
 
38
    emit_try_help ();
40
39
  else
41
40
    {
42
41
      printf (_("\
46
45
              program_name, program_name);
47
46
 
48
47
      fputs (_("\
49
 
Repeatedly output a line with all specified STRING(s), or `y'.\n\
 
48
Repeatedly output a line with all specified STRING(s), or 'y'.\n\
50
49
\n\
51
50
"), stdout);
52
51
      fputs (HELP_OPTION_DESCRIPTION, stdout);