summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorjbj <devnull@localhost>1999-02-21 03:57:57 +0000
committerjbj <devnull@localhost>1999-02-21 03:57:57 +0000
commit4db26fd478db2574b825f848020818fc4ce20a00 (patch)
treeb09c44d99d96f557711444635502f33b84bfab3a /tools
parent6d53fa695bf28941fce2ad57a8ce43e962945f49 (diff)
downloadrpm-4db26fd478db2574b825f848020818fc4ce20a00.tar.gz
rpm-4db26fd478db2574b825f848020818fc4ce20a00.tar.bz2
rpm-4db26fd478db2574b825f848020818fc4ce20a00.zip
Permit group extraction from command line.
CVS patchset: 2821 CVS date: 1999/02/21 03:57:57
Diffstat (limited to 'tools')
-rw-r--r--tools/rpmgettext.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/rpmgettext.c b/tools/rpmgettext.c
index 6cd48965d..56510ae18 100644
--- a/tools/rpmgettext.c
+++ b/tools/rpmgettext.c
@@ -36,6 +36,7 @@ char *outputdir = "/tmp/OUT";
int nlangs = 0;
char *onlylang[128];
int metamsgid = 0;
+int nogroups = 1;
int gentran = 0;
@@ -303,6 +304,7 @@ gettextfile(FD_t fd, const char *file, FILE *fp, int *poTags)
continue;
/* XXX skip untranslated RPMTAG_GROUP for now ... */
+ if (nogroups) {
switch (*tp) {
case RPMTAG_GROUP:
if (count <= 1)
@@ -311,6 +313,7 @@ gettextfile(FD_t fd, const char *file, FILE *fp, int *poTags)
default:
break;
}
+ }
/* XXX generate catalog for single language */
onlymsgstr = NULL;
@@ -975,7 +978,7 @@ main(int argc, char **argv)
program_name = basename(argv[0]);
- while((c = getopt(argc, argv, "deEMl:I:O:Tv")) != EOF)
+ while((c = getopt(argc, argv, "degEMl:I:O:Tv")) != EOF)
switch (c) {
case 'd':
debug++;
@@ -1001,6 +1004,9 @@ main(int argc, char **argv)
case 'M':
metamsgid++;
break;
+ case 'g':
+ nogroups = 0;
+ break;
case 'v':
verbose++;
break;