]> git.pld-linux.org Git - packages/coreutils.git/blob - coreutils-getgid.patch
- obsolete
[packages/coreutils.git] / coreutils-getgid.patch
1 diff -Nur coreutils-4.5.3.orig/man/Makefile.am coreutils-4.5.3/man/Makefile.am
2 --- coreutils-4.5.3.orig/man/Makefile.am        Fri Aug  9 08:12:29 2002
3 +++ coreutils-4.5.3/man/Makefile.am     Sun Oct 27 21:38:26 2002
4 @@ -10,6 +10,7 @@
5    su.1 sum.1 sync.1 tac.1 tail.1 tee.1 test.1 touch.1 tr.1 true.1 tsort.1 \
6    tty.1 uname.1 unexpand.1 uniq.1 unlink.1 uptime.1 users.1 vdir.1 wc.1 \
7    who.1 whoami.1 yes.1
8 +man_MANS = getgid.1
9  
10  man_aux = $(dist_man_MANS:.1=.x)
11  
12 diff -Nur coreutils-4.5.3.orig/man/getgid.1 coreutils-4.5.3/man/getgid.1
13 --- coreutils-4.5.3.orig/man/getgid.1   Thu Jan  1 01:00:00 1970
14 +++ coreutils-4.5.3/man/getgid.1        Sun Oct 27 21:40:54 2002
15 @@ -0,0 +1,22 @@
16 +.TH GETGID "1" "October 2002" "getgid (coreutils) 4.5.3" "User Commands"
17 +.SH NAME
18 +getgid \- print ID of given group
19 +.SH SYNOPSIS
20 +.B getgid
21 +\fIGROUPNAME\fR
22 +.SH DESCRIPTION
23 +.PP
24 +Print group ID for GROUPNAME.
25 +.PP
26 +Without any OPTION, print usage information.
27 +.SH AUTHOR
28 +Written by Artur Frysiak.
29 +.SH "REPORTING BUGS"
30 +Report bugs to <feedback@pld.org.pl>.
31 +.SH COPYRIGHT
32 +Copyright \(co 1999 Artur Frysiak.
33 +.br
34 +This is free software; see the source for copying conditions.  There is NO
35 +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
36 +.SH "SEE ALSO"
37 +.BR id (1)
38 diff -Nur coreutils-4.5.3.orig/man/pl/getgid.1 coreutils-4.5.3/man/pl/getgid.1
39 --- coreutils-4.5.3.orig/man/pl/getgid.1        Thu Jan  1 01:00:00 1970
40 +++ coreutils-4.5.3/man/pl/getgid.1     Sun Oct 27 21:46:48 2002
41 @@ -0,0 +1,22 @@
42 +.TH GETGID "1" "Pa¼dziernik 2002" "getgid (coreutils) 4.5.3" "Polecenia u¿ytkownika"
43 +.SH NAZWA
44 +getgid \- wypisuje identyfikator podanej grupy
45 +.SH SK£ADNIA
46 +.B getgid
47 +\fINAZWA-GRUPY\fR
48 +.SH OPIS
49 +.PP
50 +Wypisuje identyfikator grupy NAZWA-GRUPY.
51 +.PP
52 +Bez ¿adnych opcji podaje sposób u¿ycia.
53 +.SH AUTOR
54 +Napisane przez Artura Frysiaka.
55 +.SH "ZG£ASZANIE B£ÊDÓW"
56 +B³êdy proszê zg³aszaæ (w jêz. polskim lub angielskim) pod <feedback@pld.org.pl>.
57 +.SH COPYRIGHT
58 +Copyright \(co 1999 Artur Frysiak.
59 +.br
60 +This is free software; see the source for copying conditions.  There is NO
61 +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
62 +.SH ZOBACZ TAK¯E
63 +.BR id (1)
64 diff -Nur coreutils-4.5.3.orig/src/Makefile.am coreutils-4.5.3/src/Makefile.am
65 --- coreutils-4.5.3.orig/src/Makefile.am        Sun Oct 27 21:25:08 2002
66 +++ coreutils-4.5.3/src/Makefile.am     Sun Oct 27 21:30:35 2002
67 @@ -10,7 +10,7 @@
68    mkfifo mknod mv rm rmdir shred stat sync touch unlink \
69    cat cksum comm csplit cut expand fmt fold head join md5sum \
70    nl od paste pr ptx sha1sum sort split sum tac tail tr tsort unexpand uniq wc \
71 -  basename date dirname echo env expr factor false \
72 +  basename date dirname echo env expr factor false getgid \
73    hostname id kill logname pathchk printenv printf pwd seq sleep tee \
74    test true tty whoami yes \
75    @OPTIONAL_BIN_PROGS@ @DF_PROG@
76 diff -Nur coreutils-4.5.3.orig/src/getgid.c coreutils-4.5.3/src/getgid.c
77 --- coreutils-4.5.3.orig/src/getgid.c   Thu Jan  1 01:00:00 1970
78 +++ coreutils-4.5.3/src/getgid.c        Sun Oct 27 21:52:01 2002
79 @@ -0,0 +1,46 @@
80 +/* getgid - print GID of given group
81 +   Copyright (C) 1999 Artur Frysiak <wiget@pld.org.pl>
82 +
83 +   This program is free software; you can redistribute it and/or modify
84 +   it under the terms of the GNU General Public License as published by
85 +   the Free Software Foundation; either version 2, or (at your option)
86 +   any later version.
87 +
88 +   This program is distributed in the hope that it will be useful,
89 +   but WITHOUT ANY WARRANTY; without even the implied warranty of
90 +   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
91 +   GNU General Public License for more details.
92 +
93 +   You should have received a copy of the GNU General Public License
94 +   along with this program; if not, write to the Free Software Foundation,
95 +   Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
96 +
97 +#include <config.h>
98 +#include <grp.h>
99 +#include <sys/types.h>
100 +#include "system.h"
101 +
102 +int main(int argc, char **argv)
103 +{
104 +       struct group    *gr;
105 +       int             retval;
106 +
107 +       setlocale (LC_ALL, "");
108 +       bindtextdomain (PACKAGE, LOCALEDIR);
109 +       textdomain (PACKAGE);
110 +
111 +       if (argc > 1) {
112 +               gr = getgrnam(argv[1]);
113 +               if (gr) {
114 +                       printf("%d\n",gr->gr_gid);
115 +                       retval = 0;
116 +               } else {
117 +                       retval = 1;
118 +               }
119 +       } else {
120 +               printf(_("Usage:\n\t%s groupname\n"),argv[0]);
121 +               retval = 1;
122 +       }
123 +       return retval;
124 +}
125 +
126 --- coreutils-4.5.3/po/POTFILES.in.orig Mon Jul  1 23:26:55 2002
127 +++ coreutils-4.5.3/po/POTFILES.in      Fri Nov  1 02:25:41 2002
128 @@ -50,6 +50,7 @@
129  src/false.c
130  src/fmt.c
131  src/fold.c
132 +src/getgid.c
133  src/head.c
134  src/hostid.c
135  src/hostname.c
136 --- coreutils-5.2.1.orig/po/pl.po       Fri Nov  1 02:16:44 2002
137 +++ coreutils-5.2.1/po/pl.po    Fri Nov  1 02:28:50 2002
138 @@ -2618,6 +2618,15 @@
139  msgid "invalid number of columns: `%s'"
140  msgstr "b³êdna liczba kolumn: `%s'"
141  
142 +#: src/getgid.c:37
143 +#, c-format
144 +msgid ""
145 +"Usage:\n"
146 +"\t%s groupname\n"
147 +msgstr ""
148 +"Sk³adnia:\n"
149 +"\t%s nazwa-grupy\n"
150 +
151  #: src/head.c:117
152  msgid ""
153  "Print first 10 lines of each FILE to standard output.\n"
This page took 0.037878 seconds and 3 git commands to generate.