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

« back to all changes in this revision

Viewing changes to src/chgrp.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
/* chgrp -- change group ownership of files
2
 
   Copyright (C) 1989-1991, 1995-2011 Free Software Foundation, Inc.
 
2
   Copyright (C) 1989-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
30
30
#include "root-dev-ino.h"
31
31
#include "xstrtol.h"
32
32
 
33
 
/* The official name of this program (e.g., no `g' prefix).  */
 
33
/* The official name of this program (e.g., no 'g' prefix).  */
34
34
#define PROGRAM_NAME "chgrp"
35
35
 
36
36
#define AUTHORS \
102
102
usage (int status)
103
103
{
104
104
  if (status != EXIT_SUCCESS)
105
 
    fprintf (stderr, _("Try `%s --help' for more information.\n"),
106
 
             program_name);
 
105
    emit_try_help ();
107
106
  else
108
107
    {
109
108
      printf (_("\
115
114
Change the group of each FILE to GROUP.\n\
116
115
With --reference, change the group of each FILE to that of RFILE.\n\
117
116
\n\
 
117
"), stdout);
 
118
      fputs (_("\
118
119
  -c, --changes          like verbose but report only when a change is made\n\
 
120
  -f, --silent, --quiet  suppress most error messages\n\
 
121
  -v, --verbose          output a diagnostic for every file processed\n\
 
122
"), stdout);
 
123
      fputs (_("\
119
124
      --dereference      affect the referent of each symbolic link (this is\n\
120
125
                         the default), rather than the symbolic link itself\n\
 
126
  -h, --no-dereference   affect symbolic links instead of any referenced file\n\
121
127
"), stdout);
122
128
      fputs (_("\
123
 
  -h, --no-dereference   affect each symbolic link instead of any referenced\n\
124
 
                         file (useful only on systems that can change the\n\
 
129
                         (useful only on systems that can change the\n\
125
130
                         ownership of a symlink)\n\
126
131
"), stdout);
127
132
      fputs (_("\
128
 
      --no-preserve-root  do not treat `/' specially (the default)\n\
129
 
      --preserve-root    fail to operate recursively on `/'\n\
 
133
      --no-preserve-root  do not treat '/' specially (the default)\n\
 
134
      --preserve-root    fail to operate recursively on '/'\n\
130
135
"), stdout);
131
136
      fputs (_("\
132
 
  -f, --silent, --quiet  suppress most error messages\n\
133
137
      --reference=RFILE  use RFILE's group rather than specifying a\n\
134
138
                         GROUP value\n\
 
139
"), stdout);
 
140
      fputs (_("\
135
141
  -R, --recursive        operate on files and directories recursively\n\
136
 
  -v, --verbose          output a diagnostic for every file processed\n\
137
 
\n\
138
142
"), stdout);
139
143
      fputs (_("\
 
144
\n\
140
145
The following options modify how a hierarchy is traversed when the -R\n\
141
146
option is also specified.  If more than one is specified, only the final\n\
142
147
one takes effect.\n\